Sha256: 578667099761203f83fc63e52861d7ee1566e377ecaa97e67906df6eb364029a

Contents?: true

Size: 338 Bytes

Versions: 13

Compression:

Stored size: 338 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 directly to an IO stream",
  :which_will => "simply return a string when finished",
  :as_easy_as => 123
}

Yajl::Encoder.encode(obj, STDOUT)

Version data entries

13 entries across 13 versions & 4 rubygems

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