I want to extract stand array's first index which is located under "allocations" and turn into json object. How can i do that ? doesn't matter if it's from google.gson.JsonObject, org.json or org.json.simple library.
the specific part requested to be turned into json object is also marked.
Json is the following one.
{
"data": {
"allocationCard": {
"gate": null,
"counter": null,
"chute": null,
"carousel": null,
"stand": [
{
"value": 2204,
"label": "104",
"status": "NOTSTARTED",
"nextResources": null
},
{
"value": 2204,
"label": "104",
"status": "NOTSTARTED",
"nextResources": null
}
]
},
"allocations": {
"gate": null,
"counter": null,
"chute": null,
"carousel": null,
"stand": [
{
"version": 1,
"value": 2204,
"label": "104",
"id": 2202314,
"resourceId": 2204,
"startTime": "2022-03-22T12:50:56",
"endTime": "2022-03-22T13:30:56",
"actualStartTime": null,
"actualEndTime": null,
"note": null,
"resourceClassId": null,
"resourceClassCode": null,
"airportId": null,
"airport": null,
"free": null,
"status": "NOTSTARTED",
"commonCheckin": false,
"globalTaskId": "F_813189_U_1000391_S_1"
},
{
"version": 0,
"value": 2204,
"label": "104",
"id": 2202316,
"resourceId": 2204,
"startTime": "2022-03-22T13:31:56",
"endTime": "2022-03-22T14:11:56",
"actualStartTime": null,
"actualEndTime": null,
"note": null,
"resourceClassId": null,
"resourceClassCode": null,
"airportId": null,
"airport": null,
"free": null,
"status": "NOTSTARTED",
"commonCheckin": false,
"globalTaskId": "F_813189_U_1000391_S_2"
}
]
}
},
"error": null,
"meta": null,
"trace": "a40160921a185091",
"multilanguageFieldsMap": null
}