If I have two JSON files/expressions, how do I determine if the data-content of the JSONs is functionally equivalent?
I.e. the comparision should ignore syntax like:
- All whitespace/newlines (outside of strings).
- The ordering of object-members.
- Equivalent unicode characters (e.g. \u0041 = A).
I recognize some kind of JSON parser is needed, but I don't know my options. My data is on SQL server, so I have directly available SQL JSON functions and SSIS script components (C#/.Net).
Alternatively: Is there a way to compute hash values for JSON data-content, and are there any standards for minimizing/uniqifying the JSON expression before calculating the hash.
Edit: The JSON schema is unknown and not fixed.