public static void main(String[] args) throws JSONException {
          
      /*  Thread t = new Thread();
        t.start();*/
		for(int i=1;i<10000;){
			JSONArray data = getData(i);
			String res = data.getString(0);
			JSONObject o = new JSONObject(res);
			//System.out.println(o);
			JSONObject o1 = new JSONObject(o.get("response").toString());
			System.out.println(o1.toString());
			JSONObject obj = new JSONObject(o1.toString());
			String [] names = obj.getNames(obj);
			String rs = names[0];
			if(rs.equalsIgnoreCase("result")){
				System.out.println(obj.toString());
			    i=i+200;
			}
			else
				break;
		}
        	//Map<String,String> map = new HashMap<String,String>();
        	//ObjectMapper mapper = new ObjectMapper();
        
      
          
	}