in reply to reading a JSON object

I'm not sure what your question is. You are already reading the JSON data and extracting parts from it:

my $json = $ua->get($url)->res->json; ... my $json3 = $ua2->get($siteurl2)->res->json;

Maybe you can tell us where exactly you have problems, and show the relevant input data and what you expect your program to do?

Replies are listed 'Best First'.
Re^2: reading a JSON object
by anautismobserver (Sexton) on May 09, 2022 at 01:33 UTC
    I edited my original question to add a clarification.

      The new URL provides a different response, the code posted looks like it's based upon the code from a previous question some time ago. You need to alter the code to print the data. Which part are you experiencing problems with? Are you perhaps confused by how to address the fields in the JSON response?

Re^2: reading a JSON object
by anautismobserver (Sexton) on May 08, 2022 at 20:06 UTC
    I want to extract the timestamps and write them into a text file.