Expand description
JSON with JS semantics: JSON.parse, JSON.stringify, JS property order,
and JS number formatting and parsing.
Modules§
- number
- JS number semantics the client has to reproduce exactly:
Number.prototype.toString(also whatJSON.stringifywrites) andNumber(string).
Structs§
- Object
- A JSON object: string keys to
Values, with keys kept the way a JS object keeps its properties. - Parse
Error - Why
parserejected its input.
Enums§
- Value
- A JSON value, the data model Zero syncs and stores.
Constants§
- MAX_
DEPTH - Nesting deeper than this is rejected with
TOO_DEEP. - TOO_
DEEP - The message of the error for JSON nested deeper than
MAX_DEPTH.
Functions§
- parse
- Parses JSON text as
JSON.parsedoes. - stringify
- Encodes a value as
JSON.stringifydoes: the same string escaping and number formatting, with non-finite numbers written asnull. - write
- Appends
valueas JSON text. - write_
string - Appends
sas a JSON string literal.