By using the PHP below outputs the values underneath. But because I don't have control of the API output I would like to try and prepend the data with another output such as {"id":0,"name":"Begin","description":"this is my description","url":"http://domain.com"}
Could someone please help?
PHP
<?php
$jsonurl = "/api/styles";
$json = file_get_contents($jsonurl);
echo $json;
?>
OUTPUTS
[{"id":1,"name":"Pale","description":"this is my description","url":"http://domain.com"},{"id":2,"name":"Dawn","description":"this is my description","url":"http://domain.com"}]