Skip to content

Instantly share code, notes, and snippets.

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>
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:128:in `parse'
from /Users/jfischer/.rvm/gems/ruby/1.9.1/gems/json-1.2.3/lib/json/common.rb:128:in `parse'
from /Users/jfischer/.rvm/gems/ruby/1.9.1/gems/twitter-0.9.2/lib/twitter.rb:100:in `parse'
from /Users/jfischer/.rvm/gems/ruby/1.9.1/gems/twitter-0.9.2/lib/twitter.rb:69:in `make_friendly'
from /Users/jfischer/.rvm/gems/ruby/1.9.1/gems/twitter-0.9.2/lib/twitter/request.rb:42:in `perform'
from /Users/jfischer/.rvm/gems/ruby/1.9.1/gems/twitter-0.9.2/lib/twitter/request.rb:6:in `get'
from /Users/jfischer/.rvm/gems/ruby/1.9.1/gems/twitter-0.9.2/lib/twitter/base.rb:355:in `perform_get'
from /Users/jfischer/.rvm/gems/ruby/1.9.1/gems/twitter-0.9.2/lib/twitter/base.rb:148:in `friendship_exists?'
from (irb):5