在Android上进行JSON解析

时间:2011-10-18 04:53:22

标签: android json parsing

  

可能重复:   Parsing a 2D JSON array in Android and then putting them in intents and getting their values in another activity

我正在制作Android应用程序,其中我得到以下响应。我需要使用JSON解析来解析它并将它们带到下一个活动:

[
{
    "sno": "131",
    "email": "ruma.riwaz@gmail.com",
     "place": "43",
    "description": "",
    "image": "",
    "time": "1316156532"
},
{
    "sno": "130",
    "email": "ruma.riwaz@gmail.com",
    "place": "38",
    "description": "",
    "image": "",
    "time": "1316153291"
},
{
    "sno": "365",
    "email": "ruma.riwaz@gmail.com",
    "place": "86",
    "description": "",
    "image": "",
    "time": "1318427821"
},
{
    "sno": "129",
    "email": "ruma.riwaz@gmail.com",
    "place": "39",
    "description": "",
    "image": "",
    "time": "1316152314"
},]

如何解决此问题?

1 个答案:

答案 0 :(得分:0)

我认为您应该尝试在Google上或在StackOverFlow中自行搜索(这可能是重复的问题)....

无论如何; 您应该使用GsonJackson