67,513
社区成员
发帖
与我相关
我的任务
分享
JSONObject jsonResult = new JSONObject();
jsonResult.put("Firefox", 45.0);
jsonResult.put("IE", 26.8);
jsonResult.put("Safari", 8.5);
jsonResult.put("Opera", 6.2);
jsonResult.put("Others", 0.7);
actionResult = jsonResult.toString();
Gson gson = new Gson();
m.put("ie", "1");
m.put("google", "2");
m.put("firefox", "3");
gson.toJson(m)