提取JSON中的value

String str="{"createTime":"2017-07-05 16:25:21","id":1}";
JSONObject myJsonObject = new JSONObject(str);
Integer id = Integer.parseInt(myJsonObject.getString("id"));


请参考:点击打开链接

猜你喜欢

转载自blog.csdn.net/zgsdzczh/article/details/78410734
今日推荐