util.JSONArray.toString

Builds a JSON string from the elements contained in the JSON array object.

Syntax

util.JSONArray.toString()
  RETURNS STRING

Usage

The toString() method produces a JSON formatted string from the elements contained in the JSON array object.

Example

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