Parsing National Weather Service JSON with PHP
<p>I have been able to parse actual .json files, but this link I can't seem to parse.</p>

<p><a href="http://forecast.weather.gov/MapClick.php?lat=36.321903791028205&amp;lon=-96.80576767853478&amp;FcstType=json" rel="nofollow">http://forecast.weather.gov/MapClick.php?lat=36.321903791028205&amp;lon=-96.80576767853478&amp;FcstType=json</a></p>

<p>I am thinking because the link itself is not a .json file but a json formatted link... and I am having issues trying to parse it... even if I start by using...</p>

<pre><code>    &lt;?php

    $url = "http://forecast.weather.gov/MapClick.php?lat=36.321903791028205&amp;lon=-96.80576767853478&amp;FcstType=json";
    $json = file_get_contents($url);
    $json_a = json_decode($json,true);


    // &lt;---------- Current Conditions ----------&gt; //
        //Display Location
        $location_full = $json_a['location']['areaDescription'];

?&gt;
</code></pre>

<p>And the on my page I want to display this information I have:</p>

<pre><code>&lt;?php    
    require 'req/weatherinfo.php';  
?&gt;
&lt;!DOCTYPE html&gt;
&lt;html&gt;
    &lt;head&gt;
        &lt;title&gt;PawneeTV Weather&lt;/title&gt; 
   &lt;/head&gt;

    &lt;body&gt;  
    &lt;?php echo $location_full; ?&gt;&lt;p&gt;    
    &lt;/body&gt;
&lt;/html&gt;
</code></pre>

<p>Any ideas why its generating a blank page? I have cleared the errors now it just doesn't display anything. I've done with many times with a .json file source, it works with this source <a href="http://api.wunderground.com/api/43279e1c0b065c2e/forecast/q/OK/Pawnee.json" rel="nofollow">http://api.wunderground.com/api/43279e1c0b065c2e/forecast/q/OK/Pawnee.json</a>, but will not work with a link thats ends with =json instead of .json</p>