jsoncompare is a simple Python utility for comparing two JSON objects USAGE The compare() method can be called as a library from other Python code, in which case item1 and item2 can also be dict or array objects.