Find differences between two json objects
问题 Are there any libraries in .Net to help compare and find differences between two json objects? I've found some solutions available for JavaScript, but nothing interesting for C#. The point of my question is to create json with changes marked in some way, based on the comparison. So that the user could see where the changes are. 回答1: using Microsoft.XmlDiffPatch; using Newtonsoft.Json; Convert each json to xml and use MS XmlDiff libary. Available on nuget. Differences are given in another xml