Skip to content

Instantly share code, notes, and snippets.

Created April 30, 2011 14:04
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 anonymous/949695 to your computer and use it in GitHub Desktop.
Save anonymous/949695 to your computer and use it in GitHub Desktop.
require 'rubygems'
require 'yajl'
require 'yajl/version'
require 'json'
puts `uname -a`
p [ :ruby, RUBY_VERSION ]
p [ :json, JSON::VERSION ]
p [ :yajl, Yajl::VERSION ]
p begin
JSON.parse('f')
rescue
:json_error
end
p begin
JSON.parse('n')
rescue
:json_error
end
p begin
Yajl::Parser.parse('f')
rescue
:yajl_error
end
p begin
Yajl::Parser.parse('n')
rescue
:yajl_error
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment