decode(json) public

Parses a JSON string (JavaScript Object Notation) into a hash. See http://www.json.org for more info.

ActiveSupport::JSON.decode("{\"team\":\"rails\",\"players\":\"36\"}")
=> {"team" => "rails", "players" => "36"}
Show source
Register or log in to add new notes.