util.JSONObject.getKeys()

util.JSONObject.getKeys()returns a key list of members of the JSON object.

Syntax

CALL util.JSONObject.getKeys()

Usage and examples

MAIN
 DEFINE jo util.JSONObject
 DEFINE arr DYNAMIC ARRAY OF STRING
    CALL jo.insert( "k1", "v1" )
    CALL jo.insert( "k2", "v2" )
    CALL jo.insert( "k3", "v3" )
    CALL jo.getKeys() RETURNING arr
    DISPLAY arr
END MAIN

 

Contact Us

Privacy Policy

Copyright © 2025 Querix, (UK) Ltd.