Topics   All   MacOS (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Deprecated   Guides   Examples   Videos
New in version: 10.1   10.2   10.3   10.4   10.5   11.0   11.1   11.2   11.3   11.4    Statistic    FMM    Blog  

JSON.GetObjectSize

Queries the number of object items.

Component Version macOS Windows Linux Server iOS SDK
JSON 4.0 ✅ Yes ✅ Yes ✅ Yes ✅ Yes ✅ Yes
MBS( "JSON.GetObjectSize"; json )   More

Parameters

Parameter Description Example
json A JSON text or reference. "{\"a\":\"b\", \"c\":\"d\"}"

Result

Returns number of object entries.

Description

Queries the number of object items.

Examples

Checks number of object elements:

MBS( "JSON.GetObjectSize"; "{\"a\":\"b\", \"c\":\"d\"}" )

Example result: 2

See also

Blog Entries

FileMaker Magazin

Created 18th August 2014, last changed 11st December 2016


JSON.GetObjectNameList - JSON.GetPathItem

Feedback: Report problem or ask question.