AddJsonArray method: JsonObject class

Syntax

AddJsonArray(Name, JArrObj)

Description

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

Parameters

Parameter Description

Name

Specifies the name of the Json array that needs to be added as a string.

JArrObj

Specifies the Json array object that needs to be added as a JsonArrayObject.

Returns

None.

Example

Local JsonObject &jobj = CreateJsonObject();
Local JsonArray &jArr = CreateJsonArray();
&jObj.AddJsonArray("MemberNames", &jArr);