Find and return JSON differences using newtonsoft in C#?

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);

Leave a Comment