I am using JSONKit in my iOS app. It loads an extremely simple JSON served by my php file:
rel=“nofollow” http://staging.comwerks.net/terrence/ecitizen/article.php
somehow, it is producing an error: "Unexpected token, wanted { , } , [ , ] , , , : , true , false , null , "STRING" , NUMBER .}
当我试图使用http://jsonlint.com/至 lint my URL above。 它给人以同样的错误,对公开的 br!
我的营地必须更加简单:
<?php
header( Content-type: application/json );
$json = array( a => 1, b => 2, c => 3, d => 4, e => 5);
echo json_encode($json);
?>