Class: Hash

Inherits:
Object show all
Defined in:
lib/fbtxt/parser/parse_tree--core.rb

Instance Method Summary collapse

Instance Method Details

#as_jsonObject



24
25
26
27
28
# File 'lib/fbtxt/parser/parse_tree--core.rb', line 24

def as_json(*)
  each_with_object({}) do |(k, v), h|
    h[k.to_s] = v.as_json
  end
end