Syntax
GetJsonNode(index)
Description
Use this method to return the JsonNode at the index location.
Parameters
Name | Description |
---|---|
index | Specifies the index in the JSON Array as an integer. |
Returns
JsonNode.
Example
Local any &aValue = "hello";
If Int(Rand() * 10) > 5 Then
&aValue = CreateArrayAny("test", True, 6, Null);
End-If;
Local PSM_JSON:Array &oArray = create PSM_JSON:Array();
&oArray.AddElement(&aValue);
Local JsonNode &jnJson = &oArray.GetJsonNode(1);
/* Evaluate JsonNode ... */