Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

13 lines (10 sloc) 0.332 kb
$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
Jump to Line
Something went wrong with that request. Please try again.