JObjectHelperSetArrayItem Method
Sets a value at a certain index in an array.
Namespace: MFiles.VAF.Configuration.JsonMappingAssembly: MFiles.VAF.Configuration (in MFiles.VAF.Configuration.dll) Version: 23.12.13247.3
public JToken SetArrayItem(
JArray jArr,
int index,
JToken value
)
- jArr JArray
- The array to place the value in.
- index Int32
-
The index at which to place the array.
Negative values will simply add an item at the end.
Additional null values will be added for every index between jArr.Count and index.
- value JToken
- The value to set.
JTokenThe token of the value set at the index.