- Inheritance
Classes & Modules
- ActiveSupport::JSON::Encoding
- ActiveSupport::JSON::CircularReferenceError
- ActiveSupport::JSON::ParseError
- ActiveSupport::JSON::Variable
Constants
| Name | Description | |
|---|---|---|
| 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 |
Methods
Class
| Visibility | Signature |
|---|---|
| public | decode (json) |
| public | encode (value, options = {}) |
Class Method Detail
decode(json)
Converts a JSON string into a Ruby object.
encode(value, options = {})
Converts a Ruby object into a JSON string.