in my phone gap, when the button is clicked it hits an api and in return i am getting a json array as response as follows
{"Status":[{ "Id": "46", "Username": "guru",image:"http://xxxxx/xxxxxxxxxx//Tulips.jpg" }]}
i have stored this value in an var. Now i want to parse this response and i want to store the Id value and Username values and also the image in another var. How to do this
i tried by the following line
var data = JSON.parse(my_JSON_object);
var Username= data.Status.Itemlist[0].Username;
alert(UserName);
where in my_JSON_object i have stored the json array value.i got the username but the image is not displayed only the url gets displayed pls hlp me