set

open fun set(location: Int, value: Boolean): Json
open fun set(location: Int, value: Double): Json
open fun set(location: Int, value: Int): Json
open fun set(location: Int, @NonNull value: Json.Array): Json
open fun set(location: Int, @NonNull value: Json.Dict): Json
open fun set(location: Int, @NonNull value: String): Json

Replace an element at a location.

Return

The old object.

Parameters

location

Location to replace at.

value

The new value.

Throws


open fun set(location: Int, @NonNull object: Json): Json

Replace an element at a location.

Return

The old object.

Parameters

location

Location to replace at.

object

The new object.

Throws