put

Add a key and value to the JSON map.

Return

The JSON map builder.

Parameters

key

The key as a String.

value

The value as a JsonSerializable.


Add a key and value to the JSON map.

Return

The JSON map builder.

Parameters

key

The key as a String.

value

The value as a String.


open fun put(@NonNull key: String, value: Boolean): JsonMap.Builder

Add a key and value to the JSON map.

Return

The JSON map builder.

Parameters

key

The key as a String.

value

The value as a boolean.


open fun put(@NonNull key: String, value: Int): JsonMap.Builder

Add a key and value to the JSON map.

Return

The JSON map builder.

Parameters

key

The key as a String.

value

The value as an int.


open fun put(@NonNull key: String, value: Long): JsonMap.Builder

Add a key and value to the JSON map.

Return

The JSON map builder.

Parameters

key

The key as a String.

value

The value as a long.


open fun put(@NonNull key: String, value: Double): JsonMap.Builder

Add a key and value to the JSON map.

Return

The JSON map builder.

Parameters

key

The key as a String.

value

The value as a double.


open fun put(@NonNull key: String, value: Char): JsonMap.Builder

Add a key and value to the JSON map.

Return

The JSON map builder.

Parameters

key

The key as a String.

value

The value as a char.