README (895B)
1 This module provides an implementation of the JavaScript Object Notation (JSON) 2 format, as defined by RFC 8259. Note that several other, incompatible 3 specifications exist. This implementation does not include any extensions; only 4 features which are strictly required by the spec are implemented. 5 6 A lexer for JSON values is provided, which may be initialized with [[lex]] and 7 provides tokens via [[next]], and which uses a relatively small amount of memory 8 and provides relatively few gurantees regarding the compliance of the input with 9 the JSON grammar. 10 11 Additionally, the [[value]] type is provided to store any value JSON value, as 12 well as helpers like [[newobject]], [[get]], and [[set]]. One can load a JSON 13 value from an input stream into a heap-allocated [[value]] via [[load]], which 14 enforces all of JSON's grammar constraints and returns an object which must be 15 freed with [[finish]].