util.JSONArray.remove
Removes the specified entry in the JSON array object.
Syntax
util.JSONArray.remove(
index INTEGER )
- index is the index of the element in the JSON array object.
Usage
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.
Example
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