JSON, a subset of JavaScript, has no concept of characters. All keys are strings - so when you parse JSON with Ruby, a hash is created with strings as keys.
If you're used to working with Ruby on Rails, you can use es to work with HashWithIndifferentAccess es, which let you use strings or characters for your keys.
[Refresh] As mentioned in akuhn's comments, you can make the JSON module symbolize all keys by passing symbolize_names: true the JSON.parse parameters:
JSON.parse(json_string, symbolize_names: true)
This will result in key characters, which means that you cannot use strings as keys when accessing the hash.
source share