Received this response from the API and need to convert the JSON format below:
Original:
"data": [
[
{
"isFile": "true",
"fileType": "image",
"filesize": 100793,
"filename": "attachment_0.png",
}
],
[
{
"isFile": "true",
"fileType": "image",
"filesize": 6343078,
"filename": "attachment_1.png"
}
]
]
Modified:
"data": [
{
"isFile": "true",
"fileType": "image",
"filesize": 100793,
"filename": "attachment_0.png",
},
{
"isFile": "true",
"fileType": "image",
"filesize": 6343078,
"filename": "attachment_1.png"
}
]
What is the best way to eliminate the array within the object.