sample_json1 = [{'globalControlId': 72, 'value': 0, 'controlId': 2}, {
    'globalControlId': 77, 'value': 3, 'controlId': 7}]
sample_json2 = [{'globalControlId': 77, 'value': 3, 'controlId': 7}, {
    'globalControlId': 77, 'value': 3, 'controlId': 7}, {'globalControlId':
    72, 'value': 0, 'controlId': 2}]
sorted_1 = sorted([repr(x) for x in sample_json1])
sorted_2 = sorted([repr(x) for x in sample_json2])
print(sorted_1 == sorted_2)
set_1 = set(repr(x) for x in sample_json1)
set_2 = set(repr(x) for x in sample_json2)
print(set_1 == set_2)
как сравнить 2 json в python