Sha256: afa6c07b2fb79d60fed7ae7deaf5822f788106df5819190a306615025a452318

Contents?: true

Size: 286 Bytes

Versions: 13

Compression:

Stored size: 286 Bytes

Contents

$LOAD_PATH.unshift File.expand_path(File.dirname(__FILE__) + '/../..')
$LOAD_PATH.unshift File.expand_path(File.dirname(__FILE__) + '/../../lib')

require 'yajl'

# Usage: cat benchmark/subjects/item.json | ruby examples/from_stdin.rb

hash = Yajl::Parser.parse(STDIN)
puts hash.inspect

Version data entries

13 entries across 13 versions & 4 rubygems

Version Path
yajl-ruby-1.2.3 examples/parsing/from_stdin.rb
yajl-ruby-1.2.2 examples/parsing/from_stdin.rb
tdiary-4.2.1 vendor/bundle/ruby/2.2.0/gems/yajl-ruby-1.2.1/examples/parsing/from_stdin.rb
yajl-ruby-1.2.1 examples/parsing/from_stdin.rb
yajl-ruby-1.2.0 examples/parsing/from_stdin.rb
yajl-ruby-zenjoy-1.1.0 examples/parsing/from_stdin.rb
yajl-ruby-maglev--1.1.0 examples/parsing/from_stdin.rb
yajl-ruby-1.1.0-x86-mswin32-60 examples/parsing/from_stdin.rb
yajl-ruby-1.1.0-x86-mingw32 examples/parsing/from_stdin.rb
yajl-ruby-1.1.0 examples/parsing/from_stdin.rb
yajl-ruby-1.0.0-x86-mswin32-60 examples/parsing/from_stdin.rb
yajl-ruby-1.0.0-x86-mingw32 examples/parsing/from_stdin.rb
yajl-ruby-1.0.0 examples/parsing/from_stdin.rb