Creates a new Parser instance. You can use the
Parser to load a JSON stream from either a file or a buffer and then walk the hierarchy
using the data types API.
Loads a JSON stream from a buffer and parses it. You can call this function multiple times with the same
Parser object, but the contents of the parser will be destroyed each time.
The array_element signal is emitted each
time the Parser has successfully parsed a single element of a
Array. The array and element index are passed to the signal handlers.
The object_member signal is emitted each
time the Parser has successfully parsed a single member of a
Object. The object and member are passed to the signal handlers.