GetPropertyNameAt method: JsonObject class

Syntax

GetPropertyNameAt(index)

Description

Use this method to return the name of the properties at the specified index in the Json object.

Parameters

Parameter Description

Index

Specifies the index in the Json object as an integer.

Returns

String.

Example

Local JsonObject &jObj = CreateJsonObject();
&jObj.AddProperty("Name", "TYPE_STRING");
&jObj.AddProperty("Id", "TYPE_INT");
Local string &propName = &jObj.GetPropertyNameAt(1);