Skip to content

Instantly share code, notes, and snippets.

@pathsny
Created March 21, 2010 19:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pathsny/339528 to your computer and use it in GitHub Desktop.
Save pathsny/339528 to your computer and use it in GitHub Desktop.
require 'json/pure'
require 'active_support'
JSON.dump(JSON.load('{"a":"b"}'))
NoMethodError: undefined method `except' for #<JSON::Pure::Generator::State:0x7d6b5518>
from /opt/local/share/java/jruby/lib/ruby/gems/1.8/gems/json_pure-1.2.3/lib/json/pure/generator.rb:223:in `[]'
from /opt/local/share/java/jruby/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/json/encoders/hash.rb:45:in `as_json'
from /opt/local/share/java/jruby/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/json/encoders/hash.rb:34:in `to_json'
from /opt/local/share/java/jruby/lib/ruby/gems/1.8/gems/json_pure-1.2.3/lib/json/common.rb:188:in `generate'
from /opt/local/share/java/jruby/lib/ruby/gems/1.8/gems/json_pure-1.2.3/lib/json/common.rb:315:in `dump'
from (irb):7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment