Sha256: 5041c7ff3b2e57aeeb140719ddb386cf51ef60c85d5163f2c0c6fd60c77d1c36

Contents?: true

Size: 229 Bytes

Versions: 23

Compression:

Stored size: 229 Bytes

Contents

# encoding: UTF-8

require 'rubygems'
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

23 entries across 23 versions & 4 rubygems

Version Path
brianmario-yajl-ruby-0.5.10 examples/encoding/to_an_io.rb
brianmario-yajl-ruby-0.5.11 examples/encoding/to_an_io.rb
brianmario-yajl-ruby-0.5.12 examples/encoding/to_an_io.rb
brianmario-yajl-ruby-0.5.8 examples/encoding/to_an_io.rb
brianmario-yajl-ruby-0.5.9 examples/encoding/to_an_io.rb
brianmario-yajl-ruby-0.6.0 examples/encoding/to_an_io.rb
brianmario-yajl-ruby-0.6.1 examples/encoding/to_an_io.rb
brianmario-yajl-ruby-0.6.3 examples/encoding/to_an_io.rb
jdg-yajl-ruby-0.5.12 examples/encoding/to_an_io.rb
yajl-ruby-0.6.7 examples/encoding/to_an_io.rb
yajl-ruby-0.6.6 examples/encoding/to_an_io.rb
yajl-ruby-0.6.5 examples/encoding/to_an_io.rb
yajl-ruby-0.6.4 examples/encoding/to_an_io.rb
filipegiusti-yajl-ruby-0.6.4 examples/encoding/to_an_io.rb
yajl-ruby-0.6.3 examples/encoding/to_an_io.rb
yajl-ruby-0.6.2 examples/encoding/to_an_io.rb
yajl-ruby-0.6.0 examples/encoding/to_an_io.rb
yajl-ruby-0.6.1 examples/encoding/to_an_io.rb
yajl-ruby-0.5.8 examples/encoding/to_an_io.rb
yajl-ruby-0.5.9 examples/encoding/to_an_io.rb