解决方案 »

  1.   

    JSONObject obj = new JSONObject(json);
    JSONArray array = obj.getJSONArray("list");
      

  2.   

    String json =  new String("{\"result\":\"SUCCESS\",\"list\":[{\"copyrightcontent\":\"copyright\",\"copyrightid\":1,\"copyrightname\":\"knsemimodaviewcontroller\"}]}");
    JSONObject jsonObj = new JSONObject(json);
    List<Model> list = new ArrayList<MainActivity.Model>();
    String result = jsonObj.getString("result");
    System.out.println("result = " + result);
    if("SUCCESS".equals(result)){
    JSONArray jsonArray = jsonObj.getJSONArray("list");
    for(int i = 0; i<jsonArray.length(); i++){
    JSONObject obj = jsonArray.getJSONObject(i);
    String copyRightContent = obj.getString("copyrightcontent");
    String copyRightId = obj.getString("copyrightid");
    String copyRightName = obj.getString("copyrightname");
    list.add(new Model(copyRightContent, copyRightId, copyRightName));
    System.out.println(list.get(i));
    }
    }