class Yajl::Parser

def self.parse(str_or_io, options={}, read_bufsize=nil, &block)

:check_utf8 accepts a boolean will enable/disable UTF8 validation for the JSON stream

:allow_comments accepts a boolean will enable/disable checks for in-line comments in the JSON stream

The +options+ hash allows you to set two parsing options - :allow_comments and :check_utf8

+io+ is the stream to parse JSON from

A helper method for parse-and-forget use-cases
def self.parse(str_or_io, options={}, read_bufsize=nil, &block)
  new(options).parse(str_or_io, read_bufsize, &block)
end