Sha256: 915f3e80e113164d19a918e04b2c67236257d64f4bbcdac85a836b4166d00129

Contents?: true

Size: 1.18 KB

Versions: 2

Compression:

Stored size: 1.18 KB

Contents

# encoding: UTF-8
require 'yajl'

# = Yajl
#
# Ruby bindings to the excellent Yajl (Yet Another JSON Parser) ANSI C library.
module Yajl
  VERSION = "0.3.4"
  
  # == Yajl::Chunked
  #
  # This module contains methods for parsing JSON in chunks.
  # The use case here is that the caller may not be able to get access to the IO to which
  # JSON content is being received. Rendering Yajl::Stream dead to them.
  #
  # With the methods in this module, the caller will be able to pass in chunks of JSON content
  # until a full object has been parsed from said content.
  #
  # In order for this process to work correctly, the caller needs to specify a callback which
  # is passed the constructed object. The only requirement currently of this callback is that
  # it respond to #call and accept a single parameter (the object that was created from parsing).
  module Chunked; end
  
  # == Yajl::Stream
  #
  # This module contains methods for parsing JSON directly from an IO object.
  #
  # The only basic requirment currently is that the IO object respond to #read(len) and eof?
  #
  # The IO is parsed until a complete JSON object has been read and a ruby object will be returned.
  module Stream; end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
brianmario-yajl-ruby-0.4.0 lib/yajl.rb
brianmario-yajl-ruby-0.4.1 lib/yajl.rb