class Yajl::Bzip2::StreamWriter

A wrapper around the Bzip2::Writer class for easier JSON stream encoding

def self.encode(obj, io)

Look up Yajl::Encoder#encode for parameter documentation

A helper method for encoding to a bzip2-compressed stream
def self.encode(obj, io)
  Yajl::Encoder.new.encode(obj, new(io))
end