Enhanced JSONParser object

The following new function is added to the JSONParser object:

  • ContainsKey -- Checks if the key name exists.

    You can use this function to check whether certain key exists in a JSONParser object before executing other functions, such as GetItem.

    See the section called “ContainsKey” in PowerScript Reference for more details.

The following function is enhanced:

  • GetItemType -- Gets the type of item.

    It is now possible to specify the key of a child item, and directly get the type of the child item.

    See the section called “GetItemType” in PowerScript Reference for more details.

The following new property is added to the JSONParser object (also added to JSONPackage):

  • ReturnsNullWhenError -- Specifies whether the getting item function returns a null value when error occurs.

    You can use this property to avoid throwing an exception in cases when a getting item function returns null.

    See the section called “ReturnsNullWhenError” in Objects and Controls for more details.