String str="{"createTime":"2017-07-05 16:25:21","id":1}"; JSONObject myJsonObject = new JSONObject(str); Integer id = Integer.parseInt(myJsonObject.getString("id"));
请参考:点击打开链接
String str="{"createTime":"2017-07-05 16:25:21","id":1}"; JSONObject myJsonObject = new JSONObject(str); Integer id = Integer.parseInt(myJsonObject.getString("id"));
请参考:点击打开链接