The AL developer preview is still evolving with frequent updates. Follow us on the Dynamics NAV Team Blog for the announcements.

RemoveAt Method

Removes the token at the given index.

[Ok := ] JsonArray.RemoveAt(Index)


 Type: JsonArray

 Type: Integer
 The position of the element that will be removed.

Return Value

 Type: Boolean

True if the operation was successful; otherwise, false.

If you omit this optional return value and if the select does not execute successfully, then a run-time error occurs.


  1. The operation will fail if the Index is smaller than 0 or (greater or equal) than JsonArray.Count.
  2. Objects of type JsonArray represent a 0-based array.

See Also

HTTP, JSON, TextBuilder, and XML API
Getting Started with AL
Developing Extensions