I'm using PHP to get a JSON response from a website and then process the response using json_decode.  This is my PHP code:
  $ch = curl_init();
  curl_setopt($ch, CURLOPT_URL,"https://api.checkwx.com/taf/LLBG/?format=json");
  curl_setopt($ch, CURLOPT_POST, 1);
  curl_setopt($ch, CURLOPT_POSTFIELDS,$vars);  //Post Fields
  curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
  $headers = [
      'X-API-Key: 555555555'
  ];
  curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
  $response = curl_exec($ch);
  curl_close ($ch);
  $json=json_decode($response,true);
  $fulltaf = $json['status']['success']['data']['icao'];
This doesn't work.
This is the JSON data returned to be processed by json_decode:
{
    "status": "success",
    "data": [
        {
            "icao": "KPIE",
            "observed": "07-03-2017 @ 14:20Z",
            "raw_text": "KPIE 071353Z 13017G23KT 10SM CLR 21\/13 A3031 RMK AO2 SLP262 T02060128",
            "wind_degrees": 130,
        }
    ]
}
 
     
    