The JSONObject class / util.JSONObject methods |
Builds a JSON string from the values contained in the JSON object.
util.JSONObject.toString() RETURNING result STRING
The toString() method produces a JSON formatted string from the name-value pairs contained in the JSON object.
IMPORT util MAIN DEFINE obj util.JSONObject LET obj = util.JSONObject.create() CALL obj.put("num", "75263") CALL obj.put("name", "Ferguson") CALL obj.put("address", "12 Marylon Street") DISPLAY obj.toString() END MAIN