@Test public void testFromJson() throws Exception { }
public static Map<String,String> fromJson(String response){ Gson gson = new Gson(); MemberJson memberJson = gson.fromJson(response, MemberJson.class); Map<String,String> map = new HashMap<>(); for (Result result:memberJson.results){ map.put(result.pubkey,result.uid); } return map; }
MemberJson implements Serializable { public static Map<String,String> fromJson(String response){ Gson gson = new Gson(); MemberJson memberJson = gson.fromJson(response, MemberJson.class); Map<String,String> map = new HashMap<>(); for (Result result:memberJson.results){ map.put(result.pubkey,result.uid); } return map; } }
MemberJson implements Serializable { public static Map<String,String> fromJson(String response){ Gson gson = new Gson(); MemberJson memberJson = gson.fromJson(response, MemberJson.class); Map<String,String> map = new HashMap<>(); for (Result result:memberJson.results){ map.put(result.pubkey,result.uid); } return map; }  }
MemberJson implements Serializable { public static Map<String,String> fromJson(String response){ Gson gson = new Gson(); MemberJson memberJson = gson.fromJson(response, MemberJson.class); Map<String,String> map = new HashMap<>(); for (Result result:memberJson.results){ map.put(result.pubkey,result.uid); } return map; }  static Map<String,String> fromJson(String response); }
MemberJson implements Serializable { public static Map<String,String> fromJson(String response){ Gson gson = new Gson(); MemberJson memberJson = gson.fromJson(response, MemberJson.class); Map<String,String> map = new HashMap<>(); for (Result result:memberJson.results){ map.put(result.pubkey,result.uid); } return map; }  static Map<String,String> fromJson(String response); public Result[] results; }