Skip to content

Latest commit

 

History

History
55 lines (40 loc) · 1.71 KB

jsonarray-insert-integer-biginteger-method.md

File metadata and controls

55 lines (40 loc) · 1.71 KB
title description ms.author ms.date ms.topic author ms.reviewer
JsonArray.Insert(Integer, BigInteger) Method
Inserts the value at the given index in the array while shifting all the values to the right by one position.
solsen
08/26/2024
reference
SusanneWindfeldPedersen
solsen

JsonArray.Insert(Integer, BigInteger) Method

Version: Available or changed with runtime version 1.0.

Inserts the value at the given index in the array while shifting all the values to the right by one position.

Syntax

[Ok := ]  JsonArray.Insert(Index: Integer, Value: BigInteger)

Parameters

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

Index
 Type: Integer

Value
 Type: BigInteger

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.

The operation will fail if the Index is smaller than 0 or greater or equal than JsonArray.Count.

Related information

JsonArray Data Type
Get Started with AL
Developing Extensions