AddJsonObjectElement method: JsonArray class

Syntax

AddJsonObjectElement(Name, Obj)

Description

Use this method to add a Json object to the Json array.

Parameters

Parameter Description

Name

Specifies the name of the Json object as a string.

Obj

Specifies the object as a JsonObject.

Returns

None.

Example

Local JsonArray &jArray = CreateJsonArray();
Local JsonObject &jArrObj = CreateJsonObject();
&jArrObj.AddProperty("Name1", "TYPE_STRING");
&jArrObj.AddProperty("Name2", "TYPE_STRING");
&jArray.AddJsonObjectElement("Member Names", &jArrObj);