Guest User

Untitled

a guest
Aug 21st, 2018
10,053
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. JSON:How to handle JSON response like this?
  2. [[84,"sinat","qq357068756@163.com"],[88,"msn","qq357068756@hotmail.com"],[89,"163t","qq357068756@hotmail.com"],[90,"mail","qq357068756@hotmail.com"],[93,"mail","qq357068756@163.com"]]
  3.  
  4. String json_value = '[[84,"sinat","qq357068756@163.com"],[88,"msn","qq357068756@hotmail.com"],[89,"163t","qq357068756@hotmail.com"],[90,"mail","qq357068756@hotmail.com"],[93,"mail","qq357068756@163.com"]]';
  5.  
  6. JSONArray json_array = new JSONArray(json_value);
  7.  
  8. for(int i = 0; i < json_array.length(); i++){
  9. Log.d("Current index: "+i,"Current value: "+json_array.getJSONArray(i).toString());
  10. }
Add Comment
Please, Sign In to add comment