
json
程宇寒
来自江西赣州的小县城,越努力,越幸运
展开
-
json报错Exception in thread "http-bio-8888-exec-" java.lang.StackOverflowError
今天遇到一个报错,用json解析的时候报错,报错的是这行JSONObject jsonObject = JSONObject.fromObject(obj);代码,因为这行代码陷入了死循环,我自己分析和调试跟踪了一下,JSONObject jsonObject = JSONObject.fromObject(obj);这行代码中的obj是一个Student对象,Student类中的getStu()...原创 2018-02-14 23:46:21 · 788 阅读 · 0 评论 -
json报错Exception in thread http-bio-8888-exec- java.lang.StackOverflowError
今天遇到一个报错,用json解析的时候报错,报错的是这行JSONObject jsonObject = JSONObject.fromObject(obj);代码,因为这行代码陷入了死循环,我自己分析和调试跟踪了一下,JSONObject jsonObject = JSONObject.fromObject(obj);这行代码中的obj是一个Student对象,Student类中的getStu()...原创 2018-02-14 23:48:07 · 897 阅读 · 1 评论