JSON fixtures can be parsed into a Ruby object using the #from_json method.
#from_json
This is equivalent to JSON.parse(..., symbolize_names: true).
JSON.parse(..., symbolize_names: true)
Keys are symbolized by default. If you prefer to work with strings, pass symbolize_names: false:
symbolize_names: false