提取JSON中的value

来源:互联网 发布:算法工程师 老了 编辑:程序博客网 时间:2024/05/16 07:49
String str="{"createTime":"2017-07-05 16:25:21","id":1}";JSONObject myJsonObject = new JSONObject(str);Integer id = Integer.parseInt(myJsonObject.getString("id"));


请参考:点击打开链接

原创粉丝点击