Methods
Constants
| ParseError | = | ::ActiveSupport::OkJson::Error |
Public Instance methods
Parses a JSON string or IO and convert it into an object
[ show source ]
# File activesupport/lib/active_support/json/backends/okjson.rb, line 608
608: def decode(json)
609: if json.respond_to?(:read)
610: json = json.read
611: end
612: data = ActiveSupport::OkJson.decode(json)
613: if ActiveSupport.parse_json_times
614: convert_dates_from(data)
615: else
616: data
617: end
618: end