aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/json/backends
Commit message (Collapse)AuthorAgeFilesLines
* Ruby 1.9.2: work around changes to flatten and nil.to_strJeremy Kemper2009-11-081-9/+12
|
* Clean up spurious JSON decoding test failureJeremy Kemper2009-09-132-8/+3
|
* Fix that JSON parser fails to read escaped backslashes.Daniel Sheppard2009-08-091-1/+4
| | | | | | [#973 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* Fixed a bug in JSON decoding with Yaml backend, where a combination of ↵Bas Van Klinkenberg2009-08-081-7/+10
| | | | | | dates, escaped or unicode encoded data and arrays would make the parser fail with a ParseError exception. [#2831 state:resolved] Signed-off-by: Yehuda Katz <wycats@gmail.com>
* load the JSON Backend lazily. If the JSON gem is already loaded, use the ↵rick2009-05-172-2/+6
| | | | JSONGem backend by default.
* Add support for parsing XML and JSON from an IO as well as a string [#2659 ↵Brian Lopez2009-05-172-2/+8
| | | | | | state:resolved] Signed-off-by: Joshua Peek <josh@joshpeek.com>
* * Add pluggable JSON backends with support for the JSON gem. [rick]rick2009-04-232-0/+119
Example: ActiveSupport::JSON.backend = "JSONGem" All internal Rails JSON encoding is now handled by ActiveSupport::JSON.encode(). Use of #to_json is not recommended, as it may clash with other libraries that overwrite it. However, you can recover Rails specific functionality if you really want to use #to_json. gem 'json' ActiveSupport::JSON.backend = "JSONGem" class ActiveRecord::Base alias to_json rails_to_json end