Sha256: aae5a3a528bb0373bb120872051fbac55f594d2c0af77c2db42a7e147a30c5ff

Contents?: true

Size: 341 Bytes

Versions: 13

Compression:

Stored size: 341 Bytes

Contents

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

require 'yajl'
require 'stringio'

unless string = ARGV[0]
  puts "\nUsage: ruby examples/from_string.rb '{\"foo\": 1145}'\n\n"
  exit(0)
end

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

Version data entries

13 entries across 13 versions & 4 rubygems

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