jsondiffpatch icon indicating copy to clipboard operation
jsondiffpatch copied to clipboard

Question about jsonpatch formatter

Open danielglh opened this issue 2 years ago • 1 comments

We observed some weird behavior when using jsonpatch formatter. The diff was right but the output of jsonpatch formatter looks off.

When I looked into the jsonpatch formatter implementation, a method reorderOps caught my attention. I'm wondering why is it necessary to reorder the ops before they are returned, and why in this particular logic (remove first in desc order, then move and rest)?

danielglh avatar May 07 '22 15:05 danielglh

Hi, can you please write what is the expected order and what did you get?

aryelu avatar Oct 04 '22 16:10 aryelu