Skip to content

g-h-0-S-t/compareAndGetMissingJSONKeys

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

Dev Tools

Compare and get missing JSON Keys

Extract missing flattened keys from a JSON after comparing it to another JSON (dictionary JSON).

Usage:
Copy your JSON (the one which has / may have missing keys), goto browser console, then type var x = then paste the copied JSON.
Copy your dictionary JSON (the one which has all the keys), goto browser console, then type var y = then paste the copied JSON.
Then copy the code from compareAndGetMissingJSONKeys.js and save it as a browser bookmark.
Remember, ‘y' is your JSON dictionary, 'x’ is your missing-keys-JSON.
Click the bookmark, you’ll get an array of flattened keys that is missing, in your browser console.

Example:

Input x:
Screenshot 2022-01-20 at 2 22 49 AM

Input y:
Screenshot 2022-01-20 at 2 44 00 AM

Output:
Screenshot 2022-01-20 at 2 44 07 AM

About

Extract missing flattened keys in a JSON after comparing it to another JSON (dictionary JSON).

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published