JsonInStream reads objects from Javascript Object Notation (JSON).
See pod doc for details.
Slots
-
private Void consume()
-
private Int cur := 63
-
private Int escape()
- makeSource
-
new make(InStream in)
Construct by wrapping given input stream.
-
private List parseArray()
-
private Obj parseNum()
-
private Str parseStr()
-
private Obj? parseVal()
-
private Int pos := 0
- readJsonSource
-
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. -
private Void skipWhitespace()