andreyvit / json-diff

Structural diff for JSON files

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Ability to separate JSON returned by 'diff'

SlickNutter opened this issue · comments

Would there be interest in having an exported function which receives an Object created by diff() as an argument and returns an Object with 2 keys, new and old.
So that new includes:

  • created values
  • new values of modified elements

and old includes:

  • deleted values
  • old values of modified elements