Skip to content Skip to sidebar Skip to footer

Json Parsing Using Javascript For Phonegap Android Application

In my application I want to hit an URL and I use to get a return data in JSON format as follows: { 'Status': { 'itemlist': [{ 'image': 'http://XXXXXXXXXXXXX

Solution 1:

first there are some syntax error in given JSON string.

you can try this way

var itemList = json.Status.itemlist;
for(var i=0;i<itemList.length;i++)
{
    alert('Image:'+itemList[i].image
     +'\nID:'+itemList[i].id
        +'\nName:'+itemList[i].Name);
}

see the

DEMO

Post a Comment for "Json Parsing Using Javascript For Phonegap Android Application"