class

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.

constructors make

Wrap input stream

fields opts

methods readGrid

Convenience for readVal as Grid

readVal

Read a value and auto close stream

make 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.

opts Dict : opts

readGrid virtual Grid readGrid()

Convenience for readVal as Grid

readVal Obj? readVal(Bool close := true)

Read a value and auto close stream

Haxall 4.0.7 ∙ 27-Oct-2026 09:10 EDT