set

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

Sets a JsonConfig to the given key, and if the member already exists, it will be replaced

Parameters

key

The key to set

value

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

Sets a JsonElement to the given key, and if the member already exists, it will be replaced.

Parameters

key

The key of the element

element

The JsonElement


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

Sets a String to the given key, and if the member already exists, it will be replaced.

Parameters

key

The key of the String

value

The String value


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

Sets an Int to the given key, and if the member already exists, it will be replaced.

Parameters

key

The key of the Int

value

The Int value


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

Sets a Number to the given key, and if the member already exists, it will be replaced.

Parameters

key

The key of the Number

value

The Number value


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

Sets a Boolean to the given key, and if the member already exists, it will be replaced.

Parameters

key

The key of the Boolean

value

The Boolean value


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

Sets a JsonArray to the given key, and if the member already exists, it will be replaced.

Parameters

key

The key of the JsonArray

value

The JsonArray value


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

Sets a JsonObject to the given key, and if the member already exists, it will be replaced.

Parameters

key

The key of the JsonObject

value

The JsonObject value