You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
which as it is seen both path is same but actually the next path should be "/store/a/1". The reason is there is a bug in JsonDiff class in function generateArrayDiffs. There is a for loop as:
@fmoghaddam IMHO it is technically correct. The patch operations are applied one by one and a new JSON is constructed in betweeen - with array of length 1.
Activity
ka1amita commentedon Apr 24, 2025
@fmoghaddam IMHO it is technically correct. The patch operations are applied one by one and a new JSON is constructed in betweeen - with array of length 1.
From spec:
is also valid:
[ {"op" : "remove", "path" : "/store/a/1"}, {"op" : "remove", "path" : "/store/a/0"} ]is invalid
[ {"op" : "remove", "path" : "/store/a/0"}, {"op" : "remove", "path" : "/store/a/1"} ]