method
decode
v6.0.0 -
Show latest stable
- Class:
ActiveSupport::JSON
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"}