Java Mailing List Archive

http://www.gg3721.com/

Home » Struts Users Mailing List »

[S2] JSON plugin - Cyclic reference detected

Andras Balogh

2008-11-25

Replies: Find Java Web Hosting

Author LoginPost Reply
Hi,

I'm trying to return a list of Objects that are retrieved with Hibernate.
In these Objects i have a lot of collections like ex: groupsCollection,
bookmarksCollections etc.
All of these are of type java.util.Collection.
How can I tell in the excludeProperties to not to load these objects?
I would like that only the "first level" properties to be serialized
with JSON and ignore the rest.

What happens now is that I get a lot of errors like this:
JSONWriter:116 - Cyclic reference detected
..
and I think I end up having an infinite loop.

Thanks,
Andras.

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)

©2008 gg3721.com - Jax Systems, LLC, U.S.A.