jsondiff
jsondiff copied to clipboard
Can you return both position in a and b when it's replaced?
print(diff(['a', {"a": 0, "b": 111}], [{"a": 0, "b": 11}, 'c'])) {0: {'b': 11}, insert: [(1, 'c')], delete: [0]}
I need the result like: {replace: [(1, 0, {'b': 11})], insert: [(1, 'c')], delete: [0]}
because I want to know the both position in a and b when it's replaced.