Skip to content

Instantly share code, notes, and snippets.

@avarteq
Created April 1, 2010 13:03
Show Gist options
  • Save avarteq/351769 to your computer and use it in GitHub Desktop.
Save avarteq/351769 to your computer and use it in GitHub Desktop.
ruby-1.9.1-p243 > require 'JSON'
=> true
ruby-1.9.1-p243 > JSON.parse!("true")
JSON::ParserError: 665: unexpected token at 'true'
from /Users/jfischer/.rvm/gems/ruby/1.9.1/gems/json-1.2.3/lib/json/common.rb:151:in `parse'
from /Users/jfischer/.rvm/gems/ruby/1.9.1/gems/json-1.2.3/lib/json/common.rb:151:in `parse!'
from (irb):2
from /Users/jfischer/.rvm/ruby-1.9.1-p243/bin/irb:15:in `<main>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment