I have this JSON response from an API call. It is an object of objects.
{
"created_at": "2025-02-24 09:20:30",
"status": "ACTIVE",
"new": "0",
"flag": "0",
"notes": "",
"updated_at": "2025-02-24 09:20:30",
"answers": {
"157": {
"name": "OK",
"order": "14",
"text": "Are you OK to answer this question?",
"type": "ctl_radio",
"answer": "No"
},
"158": {
"name": "submission",
"order": "1",
"sublabels": "{\"day\":\"Day\",\"hour\":\"Hour\",\"last\":\"Last\",\"litemode\":\"Date\",\"minutes\":\"Minutes\",\"month\":\"Month\",\"year\":\"Year\"}",
"text": "Submission",
"timeFormat": "24 Hour",
"type": "control_datetime"
},
"150": {
"name": "date",
"order": "5",
"sublabels": "{\"day\":\"Day\",\"month\":\"Month\",\"year\":\"Year\",\"last\":\"Last Name\",\"hour\":\"Hour\",\"minutes\":\"Minutes\",\"litemode\":\"Date\"}",
"text": "Date",
"timeFormat": "AM/PM",
"type": "control_datetime",
"answer": {
"month": "02",
"day": "23",
"year": "2025",
"datetime": "2025-02-23 00:00:00"
},
"FormattedDate": "02-23-2025"
}
}
}
How can I get just the 'FormattedDate' part in a Compose action using an expression (or anything)?
The reason I am struggling is that whilst "FormattedDate" is always within the final object of the response, the title of this object (e.g. "150" in the above) will change. The only constants to work with are that the text property will always be "Date" and the name property will always be "date".
Is there anyway to get this value? I am looking to simply extract it as a string in a Compose action, and I can format it later on from there.
Cheers very much
BC Jabra.