Methods
Classes and Modules
- MODULE ActiveSupport::JSON::Backends
- MODULE ActiveSupport::JSON::Encoding
- CLASS ActiveSupport::JSON::Variable
Constants
| DECODERS | = | %w(Yajl Yaml) |
Listed in order of preference. |
||
| DATE_REGEX | = | /^(?:\d{4}-\d{2}-\d{2}|\d{4}-\d{1,2}-\d{1,2}[ \t]+\d{1,2}:\d{2}:\d{2}(\.[0-9]*)?(([ \t]*)Z|[-+]\d{2}?(:\d{2})?))$/ |
matches YAML-formatted dates |
||
| CircularReferenceError | = | Deprecation::DeprecatedConstantProxy.new('ActiveSupport::JSON::CircularReferenceError', Encoding::CircularReferenceError) |
Attributes
| [R] | parse_error |
Class Public methods
# File activesupport/lib/active_support/json/decoding.rb, line 20 20: def backend=(name) 21: if name.is_a?(Module) 22: @backend = name 23: else 24: require "active_support/json/backends/#{name.to_s.downcase}.rb" 25: @backend = ActiveSupport::JSON::Backends::const_get(name) 26: end 27: @parse_error = @backend::ParseError 28: end