Syntax

HasKey(name)

Description

Use this method to check whether a property exists.

Parameters

Name Description
name Specifies the name of the property that needs to be checked as a string.

Returns

Boolean.

Example

Local PSM_JSON:Object &oObject = create PSM_JSON:Object();
   
&oObject.AddString("one", "test");
   
Local boolean &bExist = &oObject.HasKey("one");