public Class Studentint id;Group g;
public Class Groupint id;Set students;
当双向关联的时候 解析Student的时候 JsonObject又会去解析students这样就造成了无限的循环。
我想问一下有什么办法解决,好像JsonObject可以设置它不无限解析吧?
http://levyer.iteye.com/blog/1188624
没看懂,你写着代码嘛意思
解析关联对象最好用gson吧