I have the following JSON response from a webservice:
{
"success": "true",
"dates_data": [
{
"zip": "8005",
"date": [
"19. Juni 2023",
"05. Juni 2023",
"15. Mai 2023",
"29. April 2023",
"17. April 2023",
"03. April 2023",
"13. März 2023",
"27. Februar 2023",
"13. Februar 2023",
"30. Januar 2023"
],
"town": "Zürich"
}
],
"_8400": "false",
"msg": "."
}
The dates are oredered the other way around and they are in German with the format %d. %B %Y
.
What I want now is to sort the array by date value ascending at take the first value.
The end result is basically like this: {{ value_json.dates_data[0].date[0] }}
, I just need to have the date
array sorted properly. Is there a way to accomplish this?