I want to find all entries where any endDate
is lower than a certain date.
What I did manage to get to work is this:
[?parentalControlSettings.legalAgeGroupRule=='Allow'].{id: appId, displayName: displayName, secretsCount: length(passwordCredentials), endDates: passwordCredentials[*].endDate}
I want something like passwordCredentials.endDate<='2020-31-15T09:54:51.603361+00:00'
However, even something like contains(2019)
would be ok.
This is my data:
[
{
"appId": "d172bbcb-4f30-49c6-a42e-496b4fdcd0b4",
"displayName": "myApp",
"parentalControlSettings": {
"countriesBlockedForMinors": [],
"legalAgeGroupRule": "Allow"
},
"passwordCredentials": [
{
"additionalProperties": null,
"customKeyIdentifier": null,
"endDate": "2117-11-15T09:54:51.603361+00:00",
"keyId": "f327e987-176a-4bc2-b733-4b0bd19e8b83",
"startDate": "2017-11-15T09:54:51.603361+00:00",
"value": null
},
{
"additionalProperties": null,
"customKeyIdentifier": null,
"endDate": "2019-11-15T09:54:51.603361+00:00",
"keyId": "f327e987-176a-4bc2-b733-4b0bd19e8b83",
"startDate": "2017-11-15T09:54:51.603361+00:00",
"value": null
}
]
}
]