Syntax
AddJsonValue(name, json_value)
Description
Use this method to add a JsonValue to the JSON Object.
Parameters
Name | Description |
---|---|
name | Specifies the name of the Json value that needs to be added as a string. |
json_value | Specifies the Json value to add to the JSON Object as a JsonValue object type. |
Returns
None.
Example
Local JsonValue &jvJson = CreateJsonValue();
&jvJson.SetString("hello");
Local PSM_JSON:Object &oObject = create PSM_JSON:Object();
&oObject.AddJsonValue("MyJsonValue", &jvJson);