Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server (Not)   Client   Old   Guides   Examples
New in version: 6.2   6.3   6.4   6.5   7.0   7.1   7.2   7.3   7.4   7.5    Statistic  

JSON.GetObjectSize

Queries the number of object items.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
JSON 4.0 Yes Yes Yes Yes Yes

MBS( "JSON.GetObjectSize"; json )

Parameters

Parameter Description Example value
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


JSON.GetObjectNameList   -   JSON.GetPathItem

Feedback: Report problem or ask question.




Links
MBS Xojo Plugins