remove

open fun remove(@NonNull key: Any): Json

Remove a key from the JSON dictionary.

Return

The value that was at the key or null if there was no such key.

Parameters

key

Key to remove.

Throws

The JSON dictionary is not mutable.