Wowza Community

Convert XML output to json collection in Laravel 5.4

Hello …

I want to know how I can convert the cURL API XML response to JSON so I can use a foreach loop within my blade page(s).

I use a controller method and do a dd (diedump) on the cURL query. This is the result:

<?xml version="1.0" encoding="UTF-8" ?>\n
<PushPublishStreams serverName="_defaultServer_">\n

etc ..<br><br>Hope someone has experience with this in Laravel and is willing to explain me how to achieve this. All I need for now is the SessionStatus.

Thanks in advance