Is there any json library for android which can manage circular reference ? I need to serialize one object which contains list of objects, where every object from list can contains list of objects of self type.
for example
class item{
LinkedList<item> list
}
class container{
LinkedList<item> list;
}
I have tried with Gson ( and Xtreme to xml ) but it doesn't work.