fn parseJson5(src: String) -> Result<Json, String>
Parse one JSON5 document: a single value, with gaps (whitespace and comments) allowed around it and nothing after it.
Type to search, or try , or .
1 export, from std/json5.vyrn.
A JSON5 reader that builds the Json tree of std/json.
import { parseJson5 } from "std/json5"
The reader writes every number in its strict spelling (0x1A -> 26, .5 -> 0.5, +5 -> 5), so emit writes strict JSON for any tree it builds; there is no JSON5 writer. It refuses Infinity, NaN and a hex literal past Int64, because none has an exact strict spelling. An unquoted key is an ASCII identifier ($, _, letters, digits); quote any other key.
The import graph shows the whole library.
fn parseJson5(src: String) -> Result<Json, String>
Parse one JSON5 document: a single value, with gaps (whitespace and comments) allowed around it and nothing after it.
5 test blocks in std/json5.vyrn. CI runs all of them.
No example program imports this module.