Map Json Writer
A JsonWriter that writes data to a Map<String, Any?>
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<String, Any?> where values are any of these values recursively
List<Any?> where values are any of these values recursively
To write to a okio.BufferedSink, see also BufferedSinkJsonWriter
Constructors
MapJsonWriter
Link copied to clipboard
fun MapJsonWriter()
Content copied to clipboard
Types
Functions
beginArray
Link copied to clipboard
beginObject
Link copied to clipboard
endArray
Link copied to clipboard
endObject
Link copied to clipboard
name
Link copied to clipboard
nullValue
Link copied to clipboard
value
Link copied to clipboard