Skip to content
Browse files

Disprefer JSONGem decoder since it only decodes JSON objects

  • Loading branch information...
1 parent ea4f8ef commit a87683fb38d6cf66f39a7bd3faa6c969c63b1f46 @jeremy jeremy committed Mar 9, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 activesupport/lib/active_support/json/decoding.rb
2 activesupport/lib/active_support/json/decoding.rb
@@ -7,7 +7,7 @@ module ActiveSupport
module JSON
# Listed in order of preference.
- DECODERS = %w(Yajl JSONGem Yaml)
DevNerd added a note Jan 29, 2013


Ruby on Rails member
jeremy added a note Jan 29, 2013

Because each JSON gem release would override all objects' #to_json in new and incompatible ways. Painful to interoperate with, whereas Yajl integration is clean and trouble-free.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
+ DECODERS = %w(Yajl Yaml)
class << self
attr_reader :parse_error

0 comments on commit a87683f

Please sign in to comment.
Something went wrong with that request. Please try again.