add

fun add(key: String, value: JsonConfig): JsonConfig

Adds a JsonConfig to the given key, and if the member already exists, it won't be replaced

Parameters

key

The key to add

value

fun add(key: String, element: JsonElement): JsonConfig

Adds an element to the given key, and if the member already exists, it won't be replaced.

Parameters

key

The key of the element

element

The element


fun add(key: String, value: String): JsonConfig

Adds a String to the given key, and if the member already exists, it won't be replaced.

Parameters

key

The key of the String

value

The String value


fun add(key: String, value: Int): JsonConfig

Adds an Int to the given key, and if the member already exists, it won't be replaced.

Parameters

key

The key of the Int

value

The Int value


fun add(key: String, value: Number): JsonConfig

Adds a Number to the given key, and if the member already exists, it won't be replaced.

Parameters

key

The key of the Number

value

The Number value


fun add(key: String, value: Boolean): JsonConfig

Adds a Boolean to the given key, and if the member already exists, it won't be replaced.

Parameters

key

The key of the Boolean

value

The Boolean value


fun add(key: String, value: JsonArray): JsonConfig

Adds a JsonArray to the given key, and if the member already exists, it won't be replaced.

Parameters

key

The key of the JsonArray

value

The JsonArray value


fun add(key: String, value: JsonObject): JsonConfig

Adds a JsonObject to the given key, and if the member already exists, it won't be replaced.

Parameters

key

The key of the JsonObject

value

The JsonObject value