JsonElement.DeepEquals(JsonElement, JsonElement) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Compares the values of two JsonElement values for equality, including the values of all descendant elements.
public:
static bool DeepEquals(System::Text::Json::JsonElement element1, System::Text::Json::JsonElement element2);
public static bool DeepEquals(System.Text.Json.JsonElement element1, System.Text.Json.JsonElement element2);
static member DeepEquals : System.Text.Json.JsonElement * System.Text.Json.JsonElement -> bool
Public Shared Function DeepEquals (element1 As JsonElement, element2 As JsonElement) As Boolean
Parameters
- element1
- JsonElement
The first JsonElement to compare.
- element2
- JsonElement
The second JsonElement to compare.
Returns
true if the two values are equal; otherwise, false.
Remarks
Deep equality of two JSON values is defined as follows: