Sha256: 940428dcf73a559d65ea4c8a5964fa82895c6fb8717a08ac7549343a515784f5

Contents?: true

Size: 304 Bytes

Versions: 5

Compression:

Stored size: 304 Bytes

Contents

# encoding: UTF-8
$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

5 entries across 5 versions & 1 rubygems

Version Path
yajl-ruby-0.8.3 examples/parsing/from_stdin.rb
yajl-ruby-0.8.2 examples/parsing/from_stdin.rb
yajl-ruby-0.8.1 examples/parsing/from_stdin.rb
yajl-ruby-0.8.0 examples/parsing/from_stdin.rb
yajl-ruby-0.7.9 examples/parsing/from_stdin.rb