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