Class: JSONStream

JSONStream(cb)

A class to decode JSON streams.

Constructor

new JSONStream(cb)

Creates an instance of JSONStream.
Parameters:
Name Type Description
cb function Callback function to handle parsed JSON objects.
Source:

Methods

decode(str)

Decodes a string containing JSON data.
Parameters:
Name Type Description
str string The string to decode.
Source:

decodeChar(c)

Decodes a single character in the JSON string.
Parameters:
Name Type Description
c string The character to decode.
Source: