Get the content of the JSON file using file_get_contents():
$str = file_get_contents ('http://example.com/example.json/');
Now decode the JSON using json_decode():
Bootstrap have many more advantages:
Bootstrap 4 CDN
If you don’t want to download the bootstrap then you can put the below url in the head element of your html file to use bootstrap.
$json = json_decode($str, true); // decode the JSON into an associative array