I was searching for simple JSON parsing in Rails and found only the Rails 2.0 way: ActiveSupport::JSON.decode. In old version of Rails (1.2.6) there’s only JSON.encode…
So I googled and found here that you can do YAML::load ‘{”key”:”value”}’
Musings through my coloured lenses. Or you can call this Ricky Bobby’s musings.
I was searching for simple JSON parsing in Rails and found only the Rails 2.0 way: ActiveSupport::JSON.decode. In old version of Rails (1.2.6) there’s only JSON.encode…
So I googled and found here that you can do YAML::load ‘{”key”:”value”}’