Json.NET Documentation
Json.NET Documentation
API Reference
Newtonsoft.Json.Linq
JArray Class
JArray Methods
Add Method
Clear Method
Contains Method
CopyTo Method
FromObject Method
GetEnumerator Method
IndexOf Method
Insert Method
Load Method
LoadAsync Method
Parse Method
Remove Method
RemoveAt Method
WriteTo Method
WriteToAsync Method
JArray
Insert Method
Inserts an item to the
JArray
at the specified index.
Namespace:
Newtonsoft.Json.Linq
Assembly:
Newtonsoft.Json (in Newtonsoft.Json.dll) Version: 12.0.1+509643a8952ce731e0207710c429ad6e67dc43db
Syntax
C#
Copy
public
void
Insert
(
int
index
,
JToken
item
)
Parameters
index
Type:
System
Int32
The zero-based index at which
item
should be inserted.
item
Type:
Newtonsoft.Json.Linq
JToken
The object to insert into the
JArray
.
Implements
IList
T
Insert(Int32, T)
Exceptions
Exception
Condition
ArgumentOutOfRangeException
index
is not a valid index in the
JArray
.
See Also
Reference
JArray Class
Newtonsoft.Json.Linq Namespace
Json.NET Home