Sha256: f2e70b9d885dac64c6c4bb75d298dd968d46ac4dcf60fbf670f4e29d7fe74a23
Contents?: true
Size: 356 Bytes
Versions: 13
Compression:
Stored size: 356 Bytes
Contents
$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
Version data entries
13 entries across 13 versions & 6 rubygems