i have below json
[
{
“id”: 311798,
“testExecKey”: “TEST81313-1323”,
“testKey”: “TEST81313-1318”,
“status”: “ON-HOLD”,
“type”: “Manual”,
“start”: “2023-06-15T08:10:39+02:00”,
“executedBy”: “rupmore”,
“defects”: [
“https://e-3d-jirira2/browse/TEST81313-1330"
],
“evidences”: [],
“steps”: [],
“assignee”: “abc”,
“testEnvironments”: [],
“iterations”: []
},
{
“id”: 311799,
“testExecKey”: “TEST81313-1323”,
“testKey”: “TEST81313-1319”,
“status”: “ABORTED”,
“type”: “Manual”,
“start”: “2023-06-15T08:10:43+02:00”,
“finish”: “2023-06-15T08:10:43+02:00”,
“executedBy”: “rupmore”,
“defects”: [],
“evidences”: [],
“steps”: [
{
“status”: “TODO”,
“defects”: [],
“evidences”: []
}
],
“assignee”: “abc”,
“testEnvironments”: [],
“iterations”: []
},
{
“id”: 311800,
“testExecKey”: “TEST81313-1323”,
“testKey”: “TEST81313-1320”,
“status”: “FAIL”,
“type”: “Manual”,
“start”: “2023-06-15T08:10:36+02:00”,
“finish”: “2023-06-15T08:10:36+02:00”,
“executedBy”: “abc”,
“defects”: [],
“evidences”: [
{
“filename”: “MicrosoftTeams-image (39).png”,
“contentType”: “image/png”,
“data”: "https://e-3d-jira2.capgeent/221611/MicrosoftTeams-image (39).png”
}
],
“steps”: [
{
“status”: “TODO”,
“defects”: ,
“evidences”:
},
{
“status”: “TODO”,
“defects”: ,
“evidences”:
}
],
“assignee”: “abc”,
“testEnvironments”: ,
“iterations”: ,
“comment”: “Action is failed for this execution and case\n”
},
{
“id”: 311801,
“testExecKey”: “TEST81313-1322”,
“testKey”: “TEST81313-1315”,
“status”: “FAIL”,
“type”: “Manual”,
“start”: “2023-06-15T08:09:37+02:00”,
“finish”: “2023-06-15T08:09:37+02:00”,
“executedBy”: “gudigoud”,
“defects”: ,
“evidences”: [
{
“filename”: “Xray_Screenshot 2023-06-15 111750.jpg”,
“contentType”: “image/jpeg”,
“data”: “https://e-3d-jira2.capgem***chment/221612/Xray_Screenshot 2023-06-15 111750.jpg”
}
],
“steps”: [
{
“status”: “TODO”,
“defects”: ,
“evidences”:
},
{
“status”: “TODO”,
“defects”: ,
“evidences”:
},
{
“status”: “TODO”,
“defects”: ,
“evidences”:
}
],
“assignee”: “abc”,
“testEnvironments”: ,
“iterations”: ,
“comment”: “Test case failed due to some defect”
}
i have above json and i need to saperate thius like belwo,
my first “testExecKey”: “TEST81313-1323” is this and second is “testExecKey”: “TEST81313-1322”,
i need data form first to below (date before start of second testextkey) means till that } brace
how can i achieve this