I need to validate a JSON response (like below) and check whether ANY one of the items in the JSON array has today's date as createdDate.
"createdDate" is actually returned as a timestamp, but I dont have the actual value. The only thing I need to validate is today's date. Order of the items is also not guaranteed. I looked at javascript macros specified at https://intuit.github.io/karate/, but it does not have an example of what I am trying to do. Please let me know any suggestions.
{
"items": [
{
"id": "...",
"name": "...",
"createDate": "03-30-2020:10:12:30"
},
{
"id": "...",
"name": "...",
"createDate": "03-31-2020:10:12:30"
}
}