class util::JsonInStream

sys::Obj
  sys::InStream
    util::JsonInStream

@Js

Source

JsonInStream reads objects from Javascript Object Notation (JSON).

See pod doc for details.

make

new make(InStream in)

Source

Construct by wrapping given input stream.

readJson

Obj? readJson()

Source

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.