ObjectJson.setMember

Sets the value of a member inside an object.

If the object does not have a member with the given name, a new member is created.

If the object already has a member with the given name, the current value is overwritten with the new.

class ObjectJson
void
setMember

Parameters

memberName string

the name of the member

node json.node.Node

the value of the member