我有一个休息FUL服务,..和我得到一个JSON数据一样,..
i have a Rest ful service,.. and i am getting a JSON data like,..
{
"returnCode": "success",
"RecievedData": {
"results": [
{
"details": [
{
"moredetails": [{
"id": "123456",
"price": "129.99",
"recorded_at": 3223322,
"lastrecorded_at": 0002020,
"seller": "google",
"availability": "Available",
"currency": "USD"
}],
"offers_count": 1,
"name": "google.com",
"recentoffers_count": 1,
"sid": "988008555566649",
"url": "http://google.com"
},
"moredetails"{
.
.
}
] details
{
{
[
]
}
"model": "abc",
"weight": "127",
"price_currency": "USD",
"features": {
.
'
}
"model": "abc",
"weight": "127",
"price_currency": "USD",
.
.
.
我使用的这本的例子或教程
和在其从这网址
这是佛在那里,他与该JSON对象解析数据 jsonarray = jsonobject.getJSONArray(worldpopulation);
an dover there he is parsing data with this json object jsonarray = jsonobject.getJSONArray("worldpopulation");
让我从一个URL得到一个数据,上面如何我想JSON数组只有2或3场解析这么多的JSON数据的是,
so i am getting a data from a url as above how to parse this much of json data in that i want only 2 or 3 fields of json array,.
请帮忙,。与它的工作为例,..上面,..
Please help ,.. with a example which is working,..for above,..
您可以使用GSON库。有一个例子这里 !
You can use gson library. There is an example here!
上一篇:如何在Java加密和解密在Android和iOS如何在、Java、iOS、Android
下一篇:当我们使用 JavaScript 创建 Metro 应用程序时,Visual Studio 11 Ultimate 中的 JS 文件在哪里当我们、应用程序、文件、Metro