@hatch:json v0.1.2
JSON parser and serializer. Pure Wren, no native deps.
$
hatch add @hatch:json
JSON parser and serializer. Pure Wren, no native deps.
JSON.static parse(text: String) → Object
JSON.static encode(value: Object) → String
JSON.static encode(value: Object, indent: Num) → String
Parser_.new(text)
Parser_.offset_
Parser_.atEnd_
Parser_.skipWs_
Parser_.parseValue_
Parser_.parseObject_
Parser_.parseArray_
Parser_.parseString_
Parser_.parseUnicodeEscape_
Parser_.parseNumber_
Parser_.parseBool_
Parser_.parseNull_
Parser_.isDigit_(c)
Parser_.isHex_(c)
Parser_.hexToNum_(hex)
Parser_.codepointToUtf8_(cp)
Parser_.matches_(keyword)
Encoder_.static write(out, value, indent, depth)
Encoder_.static writeNum_(out, n)
Encoder_.static writeString_(out, s)
Encoder_.static escapeChar_(c)
Encoder_.static hexPad_(n)
Encoder_.static writeList_(out, list, indent, depth)
Encoder_.static writeMap_(out, map, indent, depth)
Encoder_.static entryKey_(entry)
Encoder_.static spaces_(n)