正直なところ、脳のしゃっくりか何かを抱えていると思いますが、30分ほどしっかりとこれに巻き込まれています。jQueryの.post()を使用して投稿していますが、応答は次のようなJSONオブジェクトです。
{
"meta": {
"status": 201,
"msg": "Created"
},
"response": {
"id": 1111111
}
}
ただし、このJSONで何もターゲットにできない理由はわかりません。これが私が扱っているものです:
$.post('post.php',function(d){
alert(d) // Returns the JSON string above
alert(d.meta.status) // Returns 'undefined' (expecting 201)
})
ヘルプ!ありがとう :)