require 'json'

json_data = '{"name":"Alice","age":30,"hobbies":["reading","cycling","coding"]}'
parsed_data = JSON.parse(json_data)

puts parsed_data["name"] # Alice
puts parsed_data["hobbies"].join(", ") # reading, cycling, coding