Chromeでページを実行すると、「キャッチされないsyntaxerror予期しないトークンU」というエラーが表示されます。そして、Firefoxでは「JSON.parse:予期しない文字」が表示されます。私はphpファイルからjsonデータを返し、返されたjson文字列は有効です。http://jsonlint.com/で確認しました。何か助けていただければ幸いです...ありがとう。
返されたJSON文字列は次のとおりです
[
["1","Pan Africa Market","\"1521 1st Ave, Seattle, WA\"","47.608941","-122.340145","restaurant"],
["2","The Melting Pot","14 Mercer St, Seattle, WA","47.624562","-122.356442","restaurant"],
["3","Ipanema Grill","1225 1st Ave, Seattle, WA","47.606366","-122.337656","restaurant"],
["4","Sake House","230 1st Ave, Seattle, WA","47.612825","-122.34567","bar"],
["5","Crab Pot","1301 Alaskan Way, Seattle, WA","47.605961","-122.34036","restaurant"],
["6","Mexican Kitchen","2234 2nd Ave, Seattle,WA","47.613975","-122.345467","bar"],
["7","Wingdome","1416 E Olive Way, Seattle, WA","47.617215","-122.326584","bar"],
["8","Piroshky Piroshky","1908 Pike pl, Seattle, WA","47.610127","-122.342838","restaurant"]
]
\"
出力の中にある奇妙な問題である可能性があります。