Class: Oj::Saj
- Inherits:
-
Object
- Object
- Oj::Saj
- Defined in:
- lib/oj/saj.rb
Overview
A SAX style parse handler for JSON hence the acronym SAJ for Simple API for JSON. The Oj::Saj handler class should be subclassed and then used with the Oj::Saj key_parse() method. The Saj methods will then be called as the file is parsed.
To make the desired methods active while parsing the desired method should be made public in the subclasses. If the methods remain private they will not be called during parsing.
def hash_start(key); end
def hash_end(key); end
def array_start(key); end
def array_end(key); end
def add_value(value, key); end
def error(, line, column); end
Instance Method Summary collapse
-
#initialize ⇒ Saj
constructor
Create a new instance of the Saj handler class.
Constructor Details
#initialize ⇒ Saj
Create a new instance of the Saj handler class.
39 40 |
# File 'lib/oj/saj.rb', line 39 def initialize() end |