Connection Information

To perform the requested action, WordPress needs to access your web server. Please enter your FTP credentials to proceed. If you do not remember your credentials, you should contact your web host.

Connection Type

Enhanced JSONParser object – PB Docs 2019 – PowerBuilder Library

Enhanced JSONParser object – PB Docs 2019

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.


Document get from Powerbuilder help
Thank you for watching.
Was this article helpful?
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x