Advertisement
Guest User

Untitled

a guest
Apr 4th, 2017
570
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.79 KB | None | 0 0
  1. {"user_main": {
  2. "password": "hello1@H",
  3. "email":"hartk1@walla.com"},
  4. "accaunts": {
  5. "gmail":{
  6. "max78@gmail.com":"max123"},
  7. "facebook":{
  8. "max456@gmail.com":"max3234"},
  9. "twitter":{
  10. "max456@gmail.com":"maxpass12"}
  11. }
  12. }
  13.  
  14. Iterator<String> iter = null;
  15. try {
  16. iter = jObject.optJSONObject("u'accaunts'").keys();
  17. while (iter.hasNext()) {
  18. String key = iter.next();
  19. mylist.add(jObject.get(key).toString());
  20. }
  21. }catch (JSONException e) {
  22. e.printStackTrace();
  23. }
  24.  
  25. {"u'twitter'":{"u'max456@gmail.com'":"u'maxpass12'"},"u'facebook'":{"u'max456@gmail.com'":"u'max3234'"},"u'gmail'":{"u'max78@gmail.com'":"u'max123'"}}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement