HaysonReader
@Js
class HaysonReader : Obj
Read Haystack data in Hayson format, the JSON encoding where a typed scalar is an object naming its own kind.
Wrap input stream
Convenience for readVal as Grid
Read a value and auto close stream
new make(InStream in, Dict? opts := null)
Wrap input stream.
g := HaysonReader(in).readGrid
The legacy Haystack 3 encoding is still read via the 'v3' option, but is deprecated and will be removed in a future version.
Dict : opts
virtual Grid readGrid()
Convenience for readVal as Grid
Obj? readVal(Bool close := true)
Read a value and auto close stream