Fetch JSON Array from process variable

Hi,
I am sending this JSON with the request body in process-definition/start
“upload”: {
“0”: [
{
“value”: “c2FtcGxl”,
“tabId”: 0,
“type”: “file”,
“valueInfo”: {
“filename”: “untitled.txt”,
“mimeType”: “text/plain”
}
},
{
“tabId”: 0,
“type”: “file”,
“valueInfo”: {
“filename”: “index.html.txt”,
“mimeType”: “text/plain”
}
}
],
“1”: [],
“2”: [],
“3”: []
}

How can I retrieve this in Camunda?
I can use FileValue fileMetaData = delegateExecution.getVariableTyped("upload");
To retrieve this JSON data:
“upload”:{
“value”:“YQ==”,
“type”:“File”,
“valueInfo”:{
“filename”:“untitled.txt”,
“mimeType”:“text/plain”
}
}

But to retrieve the JSON array, how can I retrieve the “upload data”

Assuming the variable was saved as type “Json” / Spin:

execution.getVariable("myDataVar").prop('uploads').elements()

https://docs.camunda.org/manual/latest/reference/spin/json/01-reading-json/#fetch-array-of-data