Skip to content

Instantly share code, notes, and snippets.

@ryana
Created May 5, 2011 18:08
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 ryana/957555 to your computer and use it in GitHub Desktop.
Save ryana/957555 to your computer and use it in GitHub Desktop.
nerdrage
ruby-1.9.2-p180 :013 > false.to_json
=> "false"
ruby-1.9.2-p180 :014 > JSON.parse(false.to_json)
JSON::ParserError: 737: unexpected token at 'false'
from /Users/ryan/.rvm/gems/ruby-1.9.2-p180@4seg/gems/json-1.5.1/lib/json/common.rb:148:in `parse'
...
from script/rails:6:in `<main>'
ruby-1.9.2-p180 :015 >
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment