method
decode
v8.1.1 -
Show latest stable
- Class:
ActiveSupport::JSON
decode(json, options = {})public
Parses a JSON string (JavaScript Object Notation) into a Ruby object. See http://www.json.org for more info.
ActiveSupport::JSON.decode("{\"team\":\"rails\",\"players\":\"36\"}") # => {"team" => "rails", "players" => "36"} ActiveSupport::JSON.decode("2.39") # => 2.39