put

fun put(key: String, element: JsonElement): JsonElement?(source)

Add the given JSON element to a resulting JSON object using the given key.

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