I need assistance in extracting the latest timeStamp and userID from the JSON response where actualDataArray.status is "Approved" to populate it on the template.
{
"dataArray": [
{
"Id": 11,
"Name": "HJ Enterprises",
"Code": "HJC",
"description": "HJ APProved",
"Status": "OK",
"actualDataArray": [
{
"timeStamp": "2019-05-07-06.26.23.991068",
"status": "Approved",
"userID": "@23444",
"articles": ""
},
{
"timeStamp": "2019-05-07-06.37.27.978668",
"status": "Rejected",
"userID": "@1234",
"articles": "articles"
},
{
"timeStamp": "2019-05-08-06.26.28.991068",
"status": "Approved",
"userID": "@1233e",
"articles": ""
},
],
},
The desired output should be the most recent timeStamp and corresponding userId for that timestamp. Can you please help me with this?