Let's say that I got this from a JSON file.
[{
"data": {
"member": "Feufoe, Robert",
"project": "Random Event",
},
"folder": null,
"id": 1062110,
"spam": null
},
{
"data": {
"member": "Hefo, Talia",
"project": "Random Event",
},
"folder": null,
"id": 1062110,
"spam": null
},
{
"data": {
"member": "Mossler, John",
"project": "Random Event",
},
"folder": null,
"id": 1062110,
"spam": null
},
{
"data": {
"member": "McEvans, Nora",
"project": "Random Event",
},
"folder": null,
"id": 1062110,
"spam": null
}
]
In my script, I want to query the properties of the last entry (in this case, the entry belonging to Nora McEvans) when defining different variables.
However, the file containing the above JSON is dynamic, constantly being added to. So I need the script to reference only the last entry every time.
How can I do this?