Hi I am trying to compare fileds of two json objects and have to duplicates in json array.
below is my input which is json array of two json objects. both of the json objects have same tag called Architectural this has to be avoided and I want to make single json object with array of filenames without duplicates and filesize
in the array of json objects, each object may contain name json array with different length
[ {
"bucket": "vanasiri-100-98748-33434346-34545567002",
"path": "1127/1854/1/BidSet/Architectural_Drawing/",
"UpdatedBy": "100",
"fileSize": ["0"],
"name": ["Display external company list.docx"],
"tag": "Architectural",
"uploadedDate": "03-30-2019"
}, {
"bucket": "vanasiri-100-98748-33434346-34545567002",
"path": "1127/1854/1/BidSet/Architectural_Drawing/",
"UpdatedBy": "100",
"fileSize": ["0"],
"name": ["images.jfif"],
"tag": "Architectural",
"uploadedDate": "03-30-2019"
}
]
Expected result
[{
"bucket": "vanasiri-100-98748-33434346-34545567002",
"path": "1127/1854/1/BidSet/Architectural_Drawing/",
"UpdatedBy": "100",
"fileSize": ["0", "0"],
"name": ["Display external company list.docx", "images.jfif"],
"tag": "Architectural",
"uploadedDate": "03-30-2019"
}]
How can i achieve this