Hi,
is there a way to Update the following array:
[
{
"Name": "Max Muscle",
"Email": "maxmuscle@muster.com",
"Course 1": "x",
"Course 2": "o"
},
{
"Name": "Michael Johnson",
"Email": "mj@google.com",
"Course 1": "o",
"Course 2": "o"
},
{
"Name": "Dummy Dummy",
"Email": "dummy@dummy.com",
"Course 1": "x",
"Course 2": "x"
}
]with this Input-data:
[
{
"version": "1.17",
"userEmail": "knightright@sin.com",
"userName": null,
"sendDate": "2019-06-28T21:15:47.6208279Z",
"receivedDate": "2019-06-28T21:15:48.0330384Z",
"title": "Form1",
"data": {
"DataRecord": {
"Name": "Michael Johnson",
"Email": "mj@google.com",
},
"Username": "Michael Johnson",
"Course 1": "o",
"Course 2": "o""
}
}
]so the specific array where the "Name" has the value "Michael Johnson" needs to be updated according to the inputdata (marked in pink). The thing is: It cannot be done by using [1] index, because the position of the item in the array is dynamic and can be also the third or first position.
Is there any way to solve this problem?
Thank you for your help!
Regards Julian