Einhugur JSON Plugin III for Xojo

JSONPrimitive.AddMember Method

Adds JSONPrimitive member to a JSON object.

AddMember(
   memberName as String,
   value as EinhugurJSONIII.JSONPrimitive)

Parameters

memberName
Name of the member to add.
value
JSONprimitive value to add.

Remarks

The JSON primitive on the host class needs to be actually JSON object for this method to work.

You can only attach primitives that have not been attached before. If you really need to re-attach already used primitive then use the Clone function first to deep clone it.

This method can throw JSONIIIException.

See Also

JSONPrimitive Class