Sha256: 239ccccec7dbeea9037b42f1bdd70178b2a20bfd60ddcbdb6d7c6b216a116996
Contents?: true
Size: 342 Bytes
Versions: 13
Compression:
Stored size: 342 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 & 6 rubygems