MapJsonWriter
A JsonWriter that writes data to a Map
Call beginObject, name, value, etc... like for regular Json writing. Once you're done, get the result in root
The returned Map will contain values of the following types:
String
Int
Double
Long
JsonNumber
null
Map
where values are any of these values recursively List
where values are any of these values recursively
To write to a okio.BufferedSink, see also BufferedSinkJsonWriter
Functions
Begins encoding a new array. Each call to this method must be paired with a call to endArray.
Begins encoding a new object. Each call to this method must be paired with a call to endObject.
Ends encoding the current array.
Ends encoding the current object.
Encodes the property name.
Encodes null
.
Return the resulting representation of the Json as a Kotlin type. Most of the times, it will be a Map
Encodes a Upload.
Encodes number value
.
Encodes boolean value
.
Encodes a finite double value
.
Encodes int value
.
Encodes long value
.
Encodes the literal string value
, or null to encode a null literal.