マイコード
var json = xmlhttp.responseText; //ajax response from my php file
obj = JSON.parse(json);
alert(obj.result);
そして私のphpコードで
$result = 'Hello';
echo '{
"result":"$result",
"count":3
}';
問題は次のobj.result
とおり"$result"
ですHello
。どうすればこれを解決できますか?