Skip to main content

Crate vals_json_parser

Crate vals_json_parser 

Source

Structs§

JSONParser
JSON parser implementing a set of the standard JSON grammar.

Enums§

JSONError
JSONValue
Rule

Constants§

RULE_ARRAY
Represents a JSON array — a sequence of values within [] brackets.
RULE_BOOLEAN
Represents a JSON boolean literal — either true or false.
RULE_CHAR
Represents a single valid character within a string, handling escapes and Unicode codes.
RULE_EXP
Represents the exponential part of a number (scientific notation).
RULE_FILE
The top-level rule representing a complete JSON document.
RULE_FRAC
Represents the fractional portion of a number (the part after the decimal point).
RULE_INNER
Represents the interior characters of a string (excluding quotes and backslashes).
RULE_INT
Represents the integer portion of a number (no sign or decimal).
RULE_NULL
Represents the JSON null literal.
RULE_NUMBER
Represents a JSON number, supporting integers, fractions, and exponents.
RULE_OBJECT
Represents a JSON object — a collection of key/value pairs within {} braces.
RULE_PAIR
Represents a JSON key/value pair inside an object.
RULE_STRING
Represents a JSON string literal enclosed in double quotes.
RULE_VALUE
Represents a JSON value, which can be an object, array, string, number, boolean, or null.
RULE_WHITESPACE
Represents whitespace (spaces, tabs, carriage returns, or newlines).

Functions§

parse_json_file
serialize_jsonvalue