I have over 100 JSON objects in this specific format:
{
"grants":[
{
"grant":0,
"ID": "EP/E027261/1",
"Title": "Semiconductor Research at the Materials-Device Interface",
"PIID": "6674",
"Scheme": "Platform Grants",
"StartDate": "01/05/2007",
"EndDate": "31/10/2012",
"Value": "800579"
}, ... more grants
My goal is to extract the EndDate and Value properties into a new array as shown below.
"extractedGrants":[
{
"EndDate": "31/10/2012",
"Value": "800579"
}, ... more extracted objects with EndDate and Value properties.
I am attempting to achieve this using array.map(function (a) {}); but I'm struggling with the code inside the function.
Any help would be greatly appreciated.