Namespace
Methods
- B
- D
- E
- P
- W
Constants
DATE_REGEX | = | /^(?:\d{4}-\d{2}-\d{2}|\d{4}-\d{1,2}-\d{1,2}[T \t]+\d{1,2}:\d{2}:\d{2}(\.[0-9]*)?(([ \t]*)Z|[-+]\d{2}?(:\d{2})?))$/ |
matches YAML-formatted dates |
Class Public methods
backend()
Link
backend=(name)
Link
decode(json, options ={})
Link
# File activesupport/lib/active_support/json/decoding.rb, line 11 def decode(json, options ={}) # Can't reliably detect whether MultiJson responds to load, since it's # a reserved word. Use adapter as a proxy for new features. data = if MultiJson.respond_to?(:adapter) MultiJson.load(json, options) else MultiJson.decode(json, options) end if ActiveSupport.parse_json_times convert_dates_from(data) else data end end
encode(value, options = nil)
Link
Dumps object in JSON (JavaScript Object Notation). See www.json.org for more info.
parse_error()
Link