Click or drag to resize
Json.NET

JArrayRemove Method (JToken)

 
Removes the first occurrence of a specific object from the JArray.

Namespace:  Newtonsoft.Json.Linq
Assembly:  Newtonsoft.Json (in Newtonsoft.Json.dll) Version: 12.0.1+509643a8952ce731e0207710c429ad6e67dc43db
Syntax
C#
public bool Remove(
	JToken item
)

Parameters

item
Type: Newtonsoft.Json.LinqJToken
The object to remove from the JArray.

Return Value

Type: Boolean
true if item was successfully removed from the JArray; otherwise, false. This method also returns false if item is not found in the original JArray.

Implements

ICollectionTRemove(T)
See Also