How to Parse Json in Ruby Posted in Polyglotbits on 10 of Sep, 2015

In Ruby you parse json by first including the json library (either the one provided with the language - or any one of the gems that provide the same functionality)

require 'json'
data = JSON.parse('{"name":"Claus Witt","ideas":["idea one", "idea two"]}')
puts data['name']