I'm trying to make a webpage that echoes the contents of http://thegamesdb.net/api/GetGamesList.php?name=dog but in JSON format.
Right now my PHP page just has this code:
<?php
echo file_get_contents("http://thegamesdb.net/api/GetGamesList.php?name=dog");
?>
I found a JSFiddle that converts XML to JSON by using Javascript:
https://jsfiddle.net/neowot/7hfyunbc/2/
...but I'm not sure how to make it compatible with my purpose.
Any help would be appreciated. Thank you.