Calling convention: CIP_JSON_GetSubObject(JSONObjectPointer: NativeInt, "TokenPath": String): NativeInt
Description: Returns a pointer to the JSON value at TokenPath. The returned child pointer is owned by the root object and must not be freed separately.
Parameters:
JSONObjectPointer = Valid pointer to a managed JSON value.
TokenPath = Path of the requested child value.
Returns: NativeInt: borrowed pointer to the child value. A missing path or invalid nonzero pointer raises an exception; NULL or 0 returns without assigning a result.
Availability: Default.
Example:
try
JSONObj := CIP_JSON_LoadObjectFromFile("c:\temp\climate.json");
WorkSubObj := CIP_JSON_GetSubObject(JSONObj, "[0]");
Result := CIP_JSON_GetValue(WorkSubObj, "city", "STRING");
finally
CIP_JSON_FreeObject(JSONObj);
end;