hey i want to get list of top 250 movies of imdb but i'm unable it give me only this "{}" not whole list : I have added libraries properly there is no one error but it is not showing result as my desire...i have got the return type string and and saved it to a variable and then set it text view.. i have stuck here..please help me..
 
    public String TableToJson() throws JSONException {
        int i=0;
        
        String s="http://www.imdb.com/chart/top";
        Document doc = Jsoup.parse(s);
        JSONObject jsonParentObject = new JSONObject();
        //JSONArray list = new JSONArray();
        for (Element table : doc.select("table")) {
            for (Element row : table.select("tr")) {
                JSONObject jsonObject = new JSONObject();

                Elements tds = row.select("td");
                i++;
                String no = Integer.toString(i);
                String Name = tds.get(1).text();
                String rating = tds.get(2).text();

               

                jsonObject.put("Ranking", no);
                jsonObject.put("Title", Name);
                jsonObject.put("Rating", rating);


                jsonParentObject.put(Name, jsonObject);
            }
        }
        return jsonParentObject.toString();
    }

    
and output is only
    

    {}