Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

14 lines (10 sloc) 0.355 kB
$LOAD_PATH.unshift File.expand_path(File.dirname(__FILE__) + '/../..')
$LOAD_PATH.unshift File.expand_path(File.dirname(__FILE__) + '/../../lib')
require 'yajl'
unless file = ARGV[0]
puts "\nUsage: ruby examples/from_file.rb benchmark/subjects/item.json\n\n"
exit(0)
end
json = File.new(file, 'r')
hash = Yajl::Parser.parse(json)
puts hash.inspect
Jump to Line
Something went wrong with that request. Please try again.