Einhugur JSON Plugin III for Xojo

JSONArray.Operator_Subscript Method

Sets value in the array by JSONPrimitive using array operator.

Operator_Subscript(
   index as Integer,
   assigns value as EinhugurJSONIII.JSONPrimitive)

Parameters

index
Index of the element to set.
value (assign parameter)
The value to set.

Remarks

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.

This method can throw OutOfBoundsException.

See Also

JSONArray Class