Skip to content

ofByABit/JsonDiffUtil

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

9 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

JSON DIFF UTIL - Data Drift Identifier

**A Tiny Json To Json Differentiator **

Useful for :

  1. Json Keys Diff (Missing,Matching,Extra keys)
  2. Json value Diff (Not Matching and matching values
  3. 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)
  }
}
------------------------------------------------------------------------------------

Author

๐Ÿ‘ค Ayush Vipul

๐Ÿ“ License

Copyright ยฉ 2020 Ayush Vipul.

About

Json Diff Util

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages