jsondiff icon indicating copy to clipboard operation
jsondiff copied to clipboard

Can you return both position in a and b when it's replaced?

Open xyd113 opened this issue 2 years ago • 0 comments

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.

xyd113 avatar Apr 19 '22 07:04 xyd113