Link

Syntax

AddHash(hash)

Description

Use this method to add a Hash value to the JSON Array.

Parameters

Name Description
hash Specifies the hash to add to the JSON Array as a Hash type.

Returns

None.

Example

Local Hash &hHash = CreateHash();
&hHash.SetValue("tst", "hello");
&hHash.SetValue("val", True);
&hHash.SetValue("what", 2);
   
Local PSM_JSON:Array &oArray = create PSM_JSON:Array();
   
&oArray.AddHash(&hHash);