Best way of returning differences of two json files programatically

后端 未结 3 1721
悲哀的现实
悲哀的现实 2021-01-02 11:37

I have two json files and I would like to get a json containing the differences. It is important that only the actual differences of

3条回答
  •  长情又很酷
    2021-01-02 11:53

    Try using array_diff function

    array_diff(json_decode($jsonData1), json_decode($jsonData2));
    

提交回复
热议问题