U moet een koptekst toevoegen om deze uit te voeren als json in PHP-script:json_encoded_array.php
header("Content-type: application/json");
Standaard retourneert PHP text/html wat geen geldige JSON is voor $.getJSON()
Het MIME-mediatype voor JSON-tekst is application/json. De standaardcodering is UTF-8. (Bron:RFC 4627 ).