Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old

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

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


JSON.GetObjectNameList - JSON.GetPathItem