Ruby JSON parse changes Hash keys
The JSON generator converts symbols to strings because JSON does not support symbols. Since JSON keys are all strings, parsing a JSON document will produce a Ruby hash with string keys by default. You can tell the parser to use symbols instead of strings by using the symbolize_names option. Example: original_hash = {:info => [{:from … Read more