Einhugur JSON Plugin III for Xojo

JSONPrimitive.Operator_Subscript Method

Reads JSON primitive from JSON object by using the Xojo array operator.

Operator_Subscript(
   memberName as String) as EinhugurJSONIII.JSONPrimitive

Parameters

memberName
Name of the member in the JSON object.

Returns

EinhugurJSONIII.JSONPrimitive
JSONprimitive object or nil if the requested member did not exist.

Remarks

In general if your using basic types then it is much faster to use the convenience functions like BooleanValueForKey to get the basic value directly without going through Primitive object in between.

See Also

JSONPrimitive Class