How to save an array of objects ?
To save to environment variable.
The response is:
{“Status”: 1,
“Message”: “Success”,
“Code”: 0,
"Data": [
{
"ID": 100333,
"Name": "Michael ",
"Folder": "Folder_1",
"Is_Available": false
},
{
"ID": 100334,
"Name": "Lina ",
"Folder": "Folder_2",
"Is_Available": false
},
{
"ID": 100335,
"Name": "Simon ",
"Folder": "Folder_3",
"Is_Available": true
}
]
}
I need to save in the array:
Array_of_objects[0] = “ID”: 100333,
“Name”: "Michael ",
“Folder”: “Folder_1”,
“Is_Available”: false
Array_of_objects[1] = “ID”: 100334,
“Name”: "Lina ",
“Folder”: “Folder_2”,
“Is_Available”: false
Array_of_objects[2] = “ID”: 100335,
“Name”: "Simon ",
“Folder”: “Folder_3”,
“Is_Available”: true
…
Array_of_objects[n] = …
The array length should be unlimited
Thanks!