Crate pjson[−][src]
Constants
ARRAY | the data is a JSON Array (open or close character) |
CLOSE | the data is an close character (Object or Array, ‘}’ or ‘]’) |
COLON | the data is a JSON colon character ‘:’ |
COMMA | the data is a JSON comma character ‘,’ |
DOT | the data is a Number has a dot (radix point) |
E | the data is a Number in scientific notation (has ‘E’ or ‘e’) |
END | the data is the end of the JSON document |
ESCAPED | the data is a String with at least one escape character (’') |
FALSE | the data is a JSON False |
KEY | the data is a JSON Object key |
NULL | the data is a JSON NUll |
NUMBER | the data is a JSON Number |
OBJECT | the data is a JSON Object (open or close character) |
OPEN | the data is an open character (Object or Array, ‘{’ or ‘[’) |
SIGN | the data is a signed Number (has a ‘-’ prefix) |
START | the data is the start of the JSON document |
STRING | the data is a JSON String |
TRUE | the data is a JSON True |
UNCHECKED | |
VALUE | the data is a JSON Object or Array value |
Functions
parse | Parse JSON. The iter function is a callback that fires for every element in the JSON document. Elements include all values and tokens. The ‘start’ and ‘end’ params are the start and end indexes of their respective element, such that json[start..end] will equal the complete element data. The ‘info’ param provides extra information about the element data. |