Click or drag to resize
Json.NET

JTokenDeepEquals Method

 
Compares the values of two tokens, including the values of all descendant tokens.

Namespace:  Newtonsoft.Json.Linq
Assembly:  Newtonsoft.Json (in Newtonsoft.Json.dll) Version: 12.0.1+509643a8952ce731e0207710c429ad6e67dc43db
Syntax
C#
public static bool DeepEquals(
	JToken t1,
	JToken t2
)

Parameters

t1
Type: Newtonsoft.Json.LinqJToken
The first JToken to compare.
t2
Type: Newtonsoft.Json.LinqJToken
The second JToken to compare.

Return Value

Type: Boolean
true if the tokens are equal; otherwise false.
See Also