module Yajl
Ruby Extension initializer
Yajl¶ ↑
Ruby bindings to the excellent Yajl (Yet Another JSON Parser) ANSI C library.
Constants
- MAX_DEPTH
- VERSION
Public Class Methods
dump(obj, *args, &block)
click to toggle source
For compatibility, has the same signature of Yajl::Encoder#encode
# File lib/yajl.rb, line 22 def self.dump(obj, *args, &block) Encoder.encode(obj, args, &block) end
load(str_or_io, options={}, read_bufsize=nil, &block)
click to toggle source
For compatibility, has the same signature of Yajl::Parser#parse
# File lib/yajl.rb, line 17 def self.load(str_or_io, options={}, read_bufsize=nil, &block) Parser.parse(str_or_io, options, read_bufsize, &block) end