Remove( ) method (JsonArray)
- Last Updated: February 11, 2026
- 1 minute read
- OpenEdge
- Version 13.0
- Documentation
Removes one or more elements from the JsonArray. All the remaining elements are shifted up and JsonArray:Length is decremented by the number of elements removed.
Return type: LOGICAL
Access: PUBLIC
Applies to: Progress.Json.ObjectModel.JsonArray class
Syntax
|
- index
- Indicates an INTEGER identifying the element to be removed. Indexing into JsonArray is 1-based.
- count
- An INTEGER parameter that specifies the number of elements, starting with the element at index, to remove.
A JsonError is raised if:
-
index is less
than 1, is greater than the length of the JsonArray, or is the Unknown value (
?) -
count is less than 1 or is the Unknown value (
?) - The sum of index and count is greater than the length of the JsonArray