Syntax

AddHash(name, hash)

Description

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

Parameters

Name Description
name Specifies the name of the hash that needs to be added as a string.
hash Specifies the hash to add to the JSON Object 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:Object &oObject = create PSM_JSON:Object();
   
&oObject.AddHash("MyHash", &hHash);