how to json into hash ruby

require 'json'

json_string = '{"name": "John", "age": 30, "city": "New York"}'
hash = JSON.parse(json_string)
puts hash