JsonObjectBuilder
DSL builder for a JsonObject. To create an instance of builder, use buildJsonObject build function.
Functions
Link copied to clipboard
Link copied to clipboard
Add null
to a resulting JSON object using the given key.
Link copied to clipboard
fun JsonObjectBuilder.putJsonArray(key: String, builderAction: JsonArrayBuilder.() -> Unit): JsonElement?
Add the JSON array produced by the builderAction function to a resulting JSON object using the given key.
Link copied to clipboard
fun JsonObjectBuilder.putJsonObject(key: String, builderAction: JsonObjectBuilder.() -> Unit): JsonElement?
Add the JSON object produced by the builderAction function to a resulting JSON object using the given key.