How to use the check method to find the second occurrence in the response body

Hi team,
I have the response body of a request coming as json like below:

{“id”:“00000000-0000-0000-0000-000000000000”,“borrowerId”:“5a6d5f0d-1e05-4405-ae46-dab9808e3425”,“type”:“RepaymentNoticeLetterDetails”,“category”:“Inbox”,“status”:“Active”,“sin”:null,“code”:“4C”,“sequenceNumber”:“01”,“contractNumber”:“001”,“extLetterId”:null,“payload”:null,“createdAt”:“2019-05-24T00:00:00-04:00”,“application”:“SH”,“modifiedAt”:null,“expiredAt”:null,“isExtLetter”:true,“isAction”:true,“isTax”:false,“deliveryMethod”:null},{“id”:“00000000-0000-0000-0000-000000000000”,“borrowerId”:“5a6d5f0d-1e05-4405-ae46-dab9808e3425”,“type”:“RepaymentNoticeLetterDetails”,“category”:“Inbox”,“status”:“Active”,“sin”:null,“code”:“4C”,“sequenceNumber”:“01”,“contractNumber”:“001”,“extLetterId”:null,“payload”:null,“createdAt”:“2019-02-16T00:00:00-05:00”,“application”:“SH”,“modifiedAt”:null,“expiredAt”:null,“isExtLetter”:true,“isAction”:true,“isTax”:false,“deliveryMethod”:null}

Now I want to extract the second occurence of createdAt and pass it in the subsequent request. Can someone help here please ?

What you’ve provided is not valid JSON (missing root) so if this really is your response body, you can’t use JMESPath or JsonPath and have no choice but to use regex. Use find(1) to get the second occurrence.