AddProperty method: JsonObject class
Syntax
AddProperty(Name, Type)
Description
Use this method to add a property to the Json object.
Parameters
| Parameter | Description |
|---|---|
|
Name |
Specifies the name of the property that needs to be added as a string. |
|
Type |
Specifies the type of the property that needs to be added as a string. |
Returns
None.
Example
Local JsonObject &jObj = CreateJsonObject();
&jObj.AddProperty("Name", "TYPE_STRING");
&jObj.AddProperty("Id", "TYPE_INT");