Sha256: fdf1ab957e617565822ea1c1d746d5c238e67fec8e5aa7900f27b3f92fd29bc7

Contents?: true

Size: 332 Bytes

Versions: 13

Compression:

Stored size: 332 Bytes

Contents

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

require 'yajl'

obj = {
  :a_test => "of encoding in one pass",
  :which_will => "simply return a string when finished",
  :as_easy_as => 123
}

str = Yajl::Encoder.encode(obj)
puts str

Version data entries

13 entries across 13 versions & 4 rubygems

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