I'm stuck, (new to JavaScript) so I don't want to use Jquery. However I do need to do the following in JavaScript. It's a simple get/decode and loop array.
<?php
$url = "http://data.police.uk/api/forces"; // Make the url
$c = file_get_contents($url); // Get JSON
$forces = json_decode($c,true); // Decode JSON
foreach( $forces as $obj ) {
echo $obj['id'];
} ?> <!-- End Loop -->
Thank you for your support, you guys are great!