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”}’
Search
About
You are currently browsing the Deterministic Musings weblog archives for the month December, 2007.
Longer entries are truncated. Click the headline of an entry to read it in its entirety.
Latest
- Perceived Quality and Business Value
- Cuil indexes 120 billion Web pages, but it forgot to index itself.
- CodeJam@Thoughtworks Beijing
- Don’t be a refactoring bigot (follow-up)
- Services != Distributed Object
- ActiveResource and handling a weird 204 response from a remote rails controller
- Trying out ActiveResource in 3 minutes
- Don’t be a refactoring bigot
- JSON is valid YAML
- A few things I learned about ActiveRecord after_create (and other callbacks)
