Sha256: 185670f4fee9f9012319524c9f9d57545360c115d6370ce1d87bb0fdc412c716
Contents?: true
Size: 246 Bytes
Versions: 23
Compression:
Stored size: 246 Bytes
Contents
# encoding: UTF-8 require 'rubygems' 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
23 entries across 23 versions & 4 rubygems