Skip to content

Latest commit

 

History

History
52 lines (40 loc) · 1.55 KB

jsonarray-removeat-method.md

File metadata and controls

52 lines (40 loc) · 1.55 KB
title description ms.author ms.date ms.topic author ms.reviewer
JsonArray.RemoveAt(Integer) Method
Removes the token at the given index.
solsen
05/14/2024
reference
SusanneWindfeldPedersen
solsen

JsonArray.RemoveAt(Integer) Method

Version: Available or changed with runtime version 1.0.

Removes the token at the given index.

Syntax

[Ok := ]  JsonArray.RemoveAt(Index: Integer)

Parameters

JsonArray
 Type: JsonArray
An instance of the JsonArray data type.

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

Return Value

[Optional] Ok
 Type: Boolean
true if the read was successful; otherwise, false. If you omit this optional return value and the operation does not execute successfully, a runtime error will occur.

Remarks

Note

The JsonArray is 0-based by design.

  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

JsonArray Data Type
Get Started with AL
Developing Extensions