Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Guides   Examples
New in version: 8.0   8.1   8.2   8.3   8.4   8.5   9.0   9.1   9.2   9.3    Statistic  


Queries index of value in object array.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
JSON 9.0 Yes Yes Yes Yes Yes
MBS( "JSON.FindValueInObjectArray"; json; Label; find )   More


Parameter Description Example value
json A JSON text or reference. "[{\"key\": 1}]"
Label The label for the value in the object to compare. "key"
find A JSON text or reference to find. 1


Returns index or error.


Queries index of value in object array.
Returns zero based index or -1 if not found.
We look into each object in the array, check if it has a value for the given label and compare that to the one to find.


Find item:

MBS( "JSON.FindValueInObjectArray"; "[{\"key\": 1}]"; "key"; 1 )

Example result: 0

See also

Blog Entries

Created 14th December 2018, last changed 14th December 2018

JSON.FindValueInArray   -   JSON.Format

Feedback: Report problem or ask question.

MBS Xojo Chart Plugins