1

Is there any library/script to compare two JSONs objects and show the diff between them?

Thanks

EDIT: I want to do that using python OR jquery/javascript

cengizkrbck
  • 704
  • 6
  • 21
Niros
  • 632
  • 5
  • 18
  • what os, what tools do you have available? – Fredrik Pihl Jan 04 '12 at 08:52
  • Duplicates: http://stackoverflow.com/questions/7192807/comparing-json-value-in-jquery, http://stackoverflow.com/questions/8108666/jquery-javascript-json-object-comparison – Riz Jan 04 '12 at 11:50
  • Compare part is simple for python. But, i can't figure out how to display diff and what is the diff? – cengizkrbck Jul 18 '14 at 14:02

1 Answers1

0

comparing the two JSONs is very simple (in all languages) - you just compare the strings.
showing the diffs is a little more complicated - i guess that one need to deserialize the JSONs and compare the objects.

OhadR
  • 8,276
  • 3
  • 47
  • 53