Sha256: 0cfeb2d01025a058095e797f684994ef7a0f93c8b4fe818a7afa53004d1c0f84

Contents?: true

Size: 181 Bytes

Versions: 12

Compression:

Stored size: 181 Bytes

Contents

# encoding: UTF-8

require 'rubygems'
require 'yajl'

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

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

Version data entries

12 entries across 12 versions & 3 rubygems

Version Path
brianmario-yajl-ruby-0.5.0 examples/parsing/from_stdin.rb
brianmario-yajl-ruby-0.5.1 examples/parsing/from_stdin.rb
brianmario-yajl-ruby-0.5.2 examples/parsing/from_stdin.rb
brianmario-yajl-ruby-0.5.3 examples/parsing/from_stdin.rb
brianmario-yajl-ruby-0.5.4 examples/parsing/from_stdin.rb
brianmario-yajl-ruby-0.5.5 examples/parsing/from_stdin.rb
brianmario-yajl-ruby-0.5.6 examples/parsing/from_stdin.rb
brianmario-yajl-ruby-0.5.7 examples/parsing/from_stdin.rb
oortle-yajl-ruby-0.5.8 examples/parsing/from_stdin.rb
yajl-ruby-0.5.5 examples/parsing/from_stdin.rb
yajl-ruby-0.5.6 examples/parsing/from_stdin.rb
yajl-ruby-0.5.7 examples/parsing/from_stdin.rb