The util.JSONArray class / util.JSONArray methods |
Removes the specified entry in the JSON array object.
util.JSONArray.remove( index INTEGER )
The remove() method deletes an element in the JSON array object at the given position.
The index corresponding to the first element is 1.
If no element exists at the specified index, the method returns silently.
IMPORT util MAIN DEFINE arr util.JSONArray LET arr = util.JSONArray.parse('["aa","bb","cc"]') CALL arr.remove(2) DISPLAY arr.get(2) -- cc END MAIN