Just to help future queries. There’s a nice json diff tool I came across. It works flawlessly for diff/patch of json structures:
jsondiffpatch.net
There’s also a nuget package for it.
usage is straightforward.
var jdp = new JsonDiffPatch();
JToken diffResult = jdp.Diff(leftJson, rightJson);
More Related Contents:
- parse JSON using json.net c# [closed]
- How can I parse JSON with C#?
- Deserializing JSON data to C# using JSON.NET
- Can I specify a path in an attribute to map a property in my class to a child property in my JSON?
- Casting interfaces for deserialization in JSON.NET
- How to show the “paste Json class” in visual studio 2012 when clicking on Paste Special?
- “Self Referencing Loop Detected” exception with JSON.Net
- Deserialize json array stream one item at a time
- How to Deserialize JSON data?
- How do I enumerate through a JObject?
- How to make JSON.Net serializer to call ToString() when serializing a particular type?
- Newtonsoft Json.Net serialize JObject doesn’t ignore nulls, even with the right settings
- JSON.net serialize directly from oledbconnection
- multiple JsonProperty Name assigned to single property
- Json.NET custom serialization with JsonConverter – how to get the “default” behavior
- Send JSON via POST in C# and Receive the JSON returned?
- Deserializing heterogenous JSON array into covariant List using Json.NET
- JSON deserialization – Map array indices to properties with JSON.NET
- How to apply ObjectCreationHandling.Replace to selected properties when deserializing JSON?
- DateTime column type becomes String type after deserializing DataTable
- Deserialize json object with dynamic items in C#
- Json.NET JSONPath query not returning expected results
- JSON.NET serialize JObject while ignoring null properties
- Force JsonConvert.SerializeXmlNode to serialize node value as an Integer or a Boolean
- json net leading zeros (disable base-cast)
- Deserializing JSON into an object with Json.NET
- Ignore Base Class Properties in Json.NET Serialization
- Null-coalescing operator returning null for properties of dynamic objects
- Is there a way in Json.NET serialization to distinguish between “null because not present” and “null because null”?
- Json.net serialization of custom collection implementing IEnumerable