Android的JSON解析从邮递员URL

问题描述:

我是使用JSON, 一个初学者,我无法找到,显示JSON从URL解析,并显示在列表视图中的任何教程,Android的JSON解析从邮递员URL

我要分析此JSON从URL喜欢它的下面显示

enter image description here

try { 
JSONObject jsonObj = new JSONObject(response); 

// Getting JSON Array node 
JSONArray data = jsonObj.getJSONArray("results"); 

// looping through All Data 
    for (int i = 0; i <data.length(); i++) { 
    JSONObject c = data.getJSONObject(i); 

    String id = c.getString("id"); 
    String name = c.getString("name"); 
    String email = c.getString("ordering"); 
    String address = c.getString("images"); 

} 

catch(Exception e) 
{ 
    //Json exception here 
}