**A Tiny Json To Json Differentiator **
Useful for :
- Json Keys Diff (Missing,Matching,Extra keys)
- Json value Diff (Not Matching and matching values
- Also supports ignoring specific keys.
Example :
JSON1 = {
"Rating": 1,
"SecondaryRatings": {
"Design": 4,
"Price": 2,
"RatingDimension3": 1
}
}
JSON2 = {
"Rating1": 1,
"SecondaryRatings": {
"Design": 1,
"Price": 2,
"RatingDimension3": 2
}
}
DiffResponse
-----------------------------------------------------------------------------------
JsonDiff: {
missingKeys: [
Rating1
],
unexpectedKeys: [
],
matchingValues: {
SecondaryRatings.Price: 2,
SecondaryRatings.RatingDimension3: 2
},
notMatchingValues: {
SecondaryRatings.Design=(4,
1)
}
}
------------------------------------------------------------------------------------๐ค Ayush Vipul
- Github: @ayush-vipul
Copyright ยฉ 2020 Ayush Vipul.