Class: Transit::Marshaler::Json Private
- Defined in:
- lib/transit/marshaler/cruby/json.rb
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Instance Method Summary collapse
- #emit_map(m, cache) ⇒ Object private
Methods inherited from BaseJson
#emit_array_end, #emit_array_start, #emit_int, #emit_map_end, #emit_map_start, #emit_value, #flush, #initialize
Methods included from Base
#build_handlers, #emit_array, #emit_boolean, #emit_double, #emit_encoded, #emit_nil, #emit_string, #emit_tagged_value, #escape, #find_handler, #marshal, #marshal_top, #parse_options
Constructor Details
This class inherits a constructor from Transit::Marshaler::BaseJson
Instance Method Details
#emit_map(m, cache) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
74 75 76 77 78 79 80 81 82 |
# File 'lib/transit/marshaler/cruby/json.rb', line 74 def emit_map(m, cache) emit_array_start(-1) emit_value("^ ", false) m.each do |k,v| marshal(k, true, cache) marshal(v, false, cache) end emit_array_end end |