0

I need a javascript library that'll show the differences between 2 JSON files similar to GitHub diff. Making nested JSONs collapsible would be nice as well.

Something like this: enter image description here

I found a couple: https://github.com/benjamine/jsondiffpatch https://github.com/kpdecker/jsdiff

The first one is okay, but the docs aren't that great and the second one just does green for JSON on left and red for JSON on right which will be weird cause people usually associate red with deleted and green with added.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.