解决方案 »

  1.   

    [{"subitem":{"picture":null,"name":"\u6e05\u6d17\u8863\u7269\u3001\u88ab\u8925","subitemid":"1"}},{"subitem":{"picture":null,"name":"\u5bb6\u5ead\u4fdd\u6d01","subitemid":"2"}},{"subitem":{"picture":null,"name":"\u5bb6\u7535\u7ef4\u4fee","subitemid":"3"}},{"subitem":{"picture":null,"name":"\u758f\u901a\u4e0b\u6c34\u7ba1\u9053","subitemid":"4"}},{"subitem":{"picture":null,"name":"\u6e05\u6d17\u6cb9\u70df\u673a","subitemid":"5"}},{"item":{"picture":null,"name":"\u5bb6\u653f\u670d\u52a1","describe":"\u5bb6\u653f\u670d\u52a1\uff1a\u8d1f\u8d23\u5bb6\u5ead\u7684\u4e00\u4e9b\u7410\u788e\u4e8b\uff0c\u4f8b\u5982\u6e05\u6d17\u8863\u7269\u3001\u88ab\u8925\u3001\u4fdd\u6d01\uff0c\u5bb6\u7535\u7ef4\u4fee\uff0c\u758f\u901a\u4e0b\u6c34\u7ba1\u9053\uff0c\u6e05\u6d17\u6cb9\u70df\u673a\u3002","notes":null}}]
      

  2.   

    自己琢磨出来了。现在取数据跟飞一样。
    JSONArray jsonArray = new JSONArray(result);
    for (int i = 0; i < jsonArray.length() - 1; i++) {
    JSONObject js = jsonArray.getJSONObject(i);
    String json = js.getString("subitem");
    JSONObject jsonObject = new JSONObject(json);
    name = jsonObject.getString("name");
    subitemid = jsonObject.getString("subitemid");
    Log.v("zyz", name + "-------");
    Log.v("zyz", subitemid + "-------");
    Picture picture = new Picture(name, images[i]);
    list.add(picture);
    }
    adapter = new GridViewAdapter(IndexTow.this, list);
    gridView.setAdapter(adapter);
    adapter.notifyDataSetChanged();