The util.JSONArray class / util.JSONArray methods |
Builds a JSON string from the elements contained in the JSON array object.
util.JSONArray.toString() RETURNING result STRING
The toString() method produces a JSON formatted string from the elements contained in the JSON array object.
IMPORT util MAIN DEFINE ja util.JSONArray LET ja = util.JSONArray.create() CALL ja.put(1,"aa") CALL ja.put(2,"bb") CALL ja.put(3,"cc") DISPLAY ja.toString() -- ["aa","bb","cc"] END MAIN