Archive for December, 2007

JSON is valid YAML

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”}’