PHP APIから返されたこのjson文字列からDishNameを取得しようとしています。
json文字列は
["Spicy.com Specials",{"CatID":31,"CatName":"Spicy.com Specials","DishName":"Kashmiri Chicken","DishID":52,"DishDesc":"Cooked with lychees and banana in a lovely sweet and creamy sauce","DishPrice":6.99,"CatDescription":" "},{"CatID":31,"CatName":"Spicy.com Specials","DishName":"Telapia Fish","DishID":51,"DishDesc":"Lightly spiced fillet, a very popular white fish made with peppers, onions and spices in medium sauce","DishPrice":6.99,"CatDescription":" "},
私のチタンコードは
var cats = eval('('+this.responseText+')');
alert(cats[0]);
これで「Foo.com Specials」が表示されますが、DishName が必要です。助けていただければ幸いです ありがとう