I have the following JSON object which contains certificates expreation date:
{
"certificate-one.crt": 2022-11-11T16:00:00.000Z,
"certificate-two.crt": 2022-11-11T16:00:00.000Z
}
I want to convert it to the following table:
certificate name | expiration date
--------------------------|---------------------------------------
certificate-one.crt | 2022-11-11T16:00:00.000Z
--------------------------|---------------------------------------
certificate-two.crt | 2022-11-11T16:00:00.000Z
| rex max_match=0 "\"(?<certificate_expiry>[^\"]+\"[^\"]+\"[^\"]+)\""
| mvexpand certificate_expiry
| rex field=certificate_expiry "(?<certificate_name>[^\"]+)\"[^\"]+\"(?<expiration>[^\"]+)"
| rex max_match=0 "\"(?<certificate_expiry>[^\"]+\"[^\"]+\"[^\"]+)\""
| mvexpand certificate_expiry
| rex field=certificate_expiry "(?<certificate_name>[^\"]+)\"[^\"]+\"(?<expiration>[^\"]+)"
Thanks!