Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.