Json module

json_set

procedure · 1 overloadSource

Sets a member of an object, replacing the last member with that key; object takes ownership of value and copies key.

json_set :: (object: *Json_Value, key: string, value: Json_Value)

Sets a member of an object, replacing the last member with that key; object takes ownership of value and copies key.

Parameters

object: *Json_Value
key: string
the member name.
value: Json_Value
moved into object, which owns it from then on.

See also