TJSONObject.IndexOf¶
Return index of JSONData instance in object.
Declaration¶
Source position: fpjson.pp line 722
public
function TJSONObject.IndexOf(Item: TJSONData) : Integer;
Description¶
IndexOf compares all elements in the object with Obj and returns the index (in the TJSONData.Items property) of the element instance that equals Obj. The actual instances are compared, not the JSON value. If none of the elements match, the function returns -1.
See also¶
| Name | Description |
|---|---|
| Clear | Clear the object. |
| IndexOfName | Return index of name in item list. |