I need a php script converted to output json. I have a php script that shows some data from my wordpress events canendar, but for some reason i can't figure out how to convert so it shows data in JSON format. Please let me know if you have worked with "theeventscalendar" from wordpress and have a look at the attached file. the attached file outputs this: Array ( [2026-05-02] => Array ( [meta_id] => 49177 [start_date] => 2026-05-02 20:00:00 [end_date] => 2026-05-03 02:00:00 [url] => https://www.showpass.com/meghan-patrick2 [post_id] => 4409 [post_title] => Meghan Patrick LIVE ) [2026-05-27] => Array ( [meta_id] => 49248 [start_date] => 2026-05-27 19:00:00 [end_date] => 2026-05-27 23:30:00 [url] => https://www.showpass.com/corb-lund-7/ [post_id] => 4422 [post_title] => Corb Lund - May 27 ) [2026-05-26] => Array ( [meta_id] => 49282 [start_date] => 2026-05-26 19:00:00 [end_date] => 2026-05-26 23:30:00 [url] => https://www.showpass.com/corb-lund-6/ [post_id] => 4424 [post_title] => Corb Lund - May 26 ) [2026-05-25] => Array ( [meta_id] => 49370 [start_date] => 2026-05-25 19:00:00 [end_date] => 2026-05-25 23:30:00 [url] => https://www.showpass.com/corb-lund-9/ [post_id] => 4439 [post_title] => Corb Lund - May 25 ) [2026-04-19] => Array ( [meta_id] => 49626 [start_date] => 2026-04-19 17:00:00 [end_date] => 2026-04-19 23:30:00 [url] => https://www.showpass.com/elvis-viva-las-vegas-dinner-show/ [post_id] => 4470 [post_title] => ELVIS - Via Las Vegas ) [2026-05-10] => Array ( [meta_id] => 49922 [start_date] => 2026-05-10 16:00:00 [end_date] => 2026-05-10 21:00:00 [url] => https://www.showpass.com/the-genius-of-the-gentle-giant-the-music-of-don-williams-featuring-trevor-panczak/ [post_id] => 4503 [post_title] => THE MUSIC OF�DON WILLIAMS featuring�TREVOR PANCZAK ) [2026-06-12] => Array ( [meta_id] => 49991 [start_date] => 2026-06-12 20:00:00 [end_date] => 2026-06-13 02:00:00 [url] => https://www.showpass.com/blake-whiten-calgary/ [post_id] => 4511 [post_title] => Blake Whiten LIVE ) [2026-07-08] => Array ( [meta_id] => 50124 [start_date] => 2026-07-08 20:00:00 [end_date] => 2026-07-08 23:30:00 [url] => https://www.showpass.com/payton-smith/ [post_id] => 4528 [post_title] => Payton Smith - STAMPEDE 2026 ) [2026-07-07] => Array ( [meta_id] => 50198 [start_date] => 2026-07-07 20:00:00 [end_date] => 2026-07-07 23:30:00 [url] => https://www.showpass.com/ranch-hands-cowboylesque-2/ [post_id] => 4539 [post_title] => Ranch Hands - STAMPEDE 2026 ) ) and i want it some of this data in this format ticketDates": [ { "date": "2026-04-19", "title": "Viva Las Vegas", "warning": "Ticket required - limited seats", "link": "https:\/\/www.ranchmans.ca\/events\/event\/elvis-via-las-vegas\/" }, { "date": "2027-04-20", "title": "Annual Country Fest", "warning": "Early bird tickets on sale now", "link": "https:\/\/ranchmans.ca\/tickets\/2027-04-20" } ]