I was setting up API docs for my website and I was including example code but I ran into a problem. I wrote some PHP code that was suppost to take an object out of the JSON text and print it.
<?php $api2 = $json_decode(file_get_contents("https://api.riverside.rocks/v1/status")); echo $api2; ?>
This is what the JSON text looks like:
["status: OK","services: OK","API: OK","website: OK","tucker: OK","canary: OK"]
This code did not seem to work for some reason. Any ideas?