class

JsonInStream

@Js
class JsonInStream : InStream

JsonInStream reads objects from Javascript Object Notation (JSON).

See pod doc for details.

constructors make

Construct by wrapping given input stream

methods transformObj

Override this method to transform each Str:Obj? into an arbitrary Obj during parsing

readJson

Read a JSON object from this stream and return one of the follow types

make new make(InStream in)

Construct by wrapping given input stream.

readJson Obj? readJson()

Read a JSON object from this stream and return one of the follow types:

  • null
  • Bool
  • Int
  • Float
  • Str
  • Str:Obj?
  • Obj?[]

See Str.in to read from an in-memory string.

transformObj virtual Obj transformObj(Str:Obj? obj)

Override this method to transform each Str:Obj? into an arbitrary Obj during parsing.

Haxall 4.0.5 ∙ 24-Feb-2026 14:33 EST