JSONParser Class
A JSON parser.
Constructor
Item Index
Methods
Methods
end
()
chainable
This method must be called by the parsing methods
when the parsing has finished.
parse
(
Object
-
[callback]
Starts the parsing process; in sync mode this
method blocks until the parsing has finished,
otherwise it should return immediately!
If given a callback, it must be bound to the
end
and error
events.
Parameters:
-
[callback]
Function optional
Returns:
Object:
The parse result.
parse_profile
(
chainable
-
profile
Parsers a simple profile object and adds it to the parser's station.
Parameters:
-
profile
Object
verify
()
chainable
Verify that all syntactic and semantic requirements are met
by the parsed entity.