I have a small question :
If I have a JSON array:
{
"cate_user_res_id": "4",
"from": "url",
"mimetype": "image/jpeg",
"ext": "jpg",
"res_name": "http://watermarked.cutcaster.com/cutcasterglobe.jpg",
"user_id": "1",
"file_size": 55966,
"created": "2011-12-19 03:29:45",
"type": "i"
}
How can i get data of ["res_name"] index?
I alert data['res_name'] it result undefined.
Thanks for any suggestion!
You need to parse to Javascript object first from the JSON array.