| JSON |
= |
[ lambda { |o, opts| opts[:max_nesting] = false unless opts.has_key?(:max_nesting) |
|
The JSON / JSON pure decoder
|
| ACTIVE_SUPPORT |
= |
[ lambda { |o, opts| ActiveSupport::JSON.encode(o, opts) }, lambda { |s| decode_e(s) || ActiveSupport::JSON.decode(s) }, #lambda { ::ActiveSupport::JSON::ParseError } lambda { RuntimeError } |
|
The Rails ActiveSupport::JSON decoder
|
| YAJL |
= |
[ lambda { |o, opts| Yajl::Encoder.encode(o, opts) }, lambda { |s| Yajl::Parser.parse(s) }, lambda { ::Yajl::ParseError } |
|
github.com/brianmario/yajl-ruby/
|
| NONE |
= |
[ lambda { |o, opts| raise 'no JSON backend found' }, lambda { |s| raise 'no JSON backend found' }, lambda { raise 'no JSON backend found' } |
|
The "raise an exception because there‘s no backend" backend
|
| E_REGEX |
= |
/^\d+(\.\d+)?[eE][+-]?\d+$/ |