jsondiffpatch icon indicating copy to clipboard operation
jsondiffpatch copied to clipboard

Array diff get wrong result

Open xqin opened this issue 6 months ago • 0 comments

Array diff get wrong result

left.json

[
  {
    "id": "AA"
  },
  {
    "id": "BB"
  },
  {
    "id": "CC",
    "relation": {
      "A": "11",
      "B": "22"
    }
  }
]

right.json

[
  {
    "id": "CC",
    "relation": {
      "B": "22"
    }
  }
]

Image


If I swap the data on both sides, the results are as expected.

Image

xqin avatar Jun 11 '25 06:06 xqin