putJsonArray

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.

Returns the previous value associated with key, or null if the key was not present.