- Index
- »
- util
- »
- JsonOutStream
type
JsonOutStream
src
@Js
class JsonOutStream : OutStream
JsonOutStream writes objects in Javascript Object Notation (JSON).
See pod doc for details.
constructors
make |
Construct by wrapping given output stream. |
---|
fields
escapeUnicode |
Flag to escape characters over 0x7f using |
---|---|
prettyPrint |
Write JSON in pretty-printed format. |
methods
prettyPrintToStr |
Convenience for pretty-printing JSON to an in-memory string. |
---|---|
writeJson |
Write the given object as JSON to this stream. |
writeJsonToStr |
Convenience for |
Slot Details
escapeUnicode
make
prettyPrint
prettyPrintToStr
writeJson
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)