JsonOutStream writes objects in Javascript Object Notation (JSON).
See pod doc for details.
Slots
- makeSource
-
new make(OutStream out)
Construct by wrapping given output stream.
- writeJsonSource
-
Write the given object as JSON to this stream. The obj must be one of the follow:
- null
- Bool
- Num
- Str
- Str:Obj?
- Obj?[]
- simple (written as JSON string)
- serializable (written as JSON object)
-
private Void writeJsonNull()
- writeJsonToStrSource
-
static Str writeJsonToStr(Obj? obj)
Convenience for writeJson to an in-memory string.