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: 9.5   10.0   10.1   10.2   10.3   10.4   10.5   11.0   11.1   11.2    Statistic    FMM    Blog  

JSON.GetObjectName

Queries name of item in an object.

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

Parameters

Parameter Description Example
json A JSON text or reference. "{\"a\":\"b\", \"c\":\"d\"}"
index The index of the item to get the name from. From 0 to JSON.GetObjectSize-1. 0

Result

Returns name of item.

Description

Queries name of item in an object.

Examples

Gets first object item's name:

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

See also

Blog Entries

Created 18th August 2014, last changed 3th February 2016


JSON.GetObjectItemTreeRef - JSON.GetObjectNameList

Feedback: Report problem or ask question.