# File lib/gist/json.rb, line 648 def to_json(state = nil, *) state = State.from_state(state) state.check_max_nesting json_transform(state) end