如何解析巨大的JSON数据弗罗马URL或RESTful服务在Android的?没有GSON罗马、巨大、数据、JSON

2023-09-06 06:12:38 作者:羽殇*

我有一个休息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!