Skip to content

Instantly share code, notes, and snippets.

@pathsny
Created March 22, 2010 04:59
Show Gist options
  • Save pathsny/339802 to your computer and use it in GitHub Desktop.
Save pathsny/339802 to your computer and use it in GitHub Desktop.
>> require 'json/pure'
=> true
>> require 'active_support'
=> true
>> JSON.dump(JSON.load('{"a":"b"}'))
NoMethodError: undefined method `except' for #<JSON::Pure::Generator::State:0x10232ebe8>
from /Library/Ruby/Gems/1.8/gems/json_pure-1.2.3/lib/json/pure/generator.rb:223:in `__send__'
from /Library/Ruby/Gems/1.8/gems/json_pure-1.2.3/lib/json/pure/generator.rb:223:in `[]'
from /Users/path/.gem/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/json/encoders/hash.rb:45:in `as_json'
from /Users/path/.gem/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/json/encoders/hash.rb:34:in `to_json'
from /Library/Ruby/Gems/1.8/gems/json_pure-1.2.3/lib/json/common.rb:188:in `generate'
from /Library/Ruby/Gems/1.8/gems/json_pure-1.2.3/lib/json/common.rb:315:in `dump'
from (irb):3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment