method
decode
v4.0.2 -
Show latest stable
- Class:
ActiveSupport::JSON
decode(json, options ={})public
Parses a JSON string (JavaScript Object Notation) into a hash. See www.json.org for more info.
ActiveSupport::JSON.decode("{\"team\":\"rails\",\"players\":\"36\"}") => {"team" => "rails", "players" => "36"}