Expand description
Just enough JSON to read a glTF document.
glTF’s structure is JSON and its payload is binary, so reading one needs a parser. This is that parser and nothing more: the grammar as the standard for JSON states it (objects, arrays, strings with their escapes, numbers, the three literals) with no schema, no derive, and no dependency. It is here rather than in a general place because the only thing that needs it is the format that carries its own structure this way.
Two deliberate limits, both stated rather than discovered. Numbers are read
as f64, which is what every quantity in a glTF document is used as, and a
caller wanting an index asks for one and is told if the value is not a
whole number. And duplicate object keys keep the last, which is what a
reader has to do with a document that says one thing twice.
Enums§
- Json
- A parsed JSON value.
Functions§
- parse
- Parse a JSON document.