abhijeetjais20 / google-gson

Automatically exported from code.google.com/p/google-gson
0 stars 0 forks source link

Stack Overflow #488

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Run the attached test

What is the expected output? What do you see instead?
A JSON document

What version of the product are you using? On what operating system?
gson-2.2.2 under Eclipse Indigo SR2 under Windows 7.

Please provide any additional information below.

Original issue reported on code.google.com by thomh...@gmail.com on 20 Nov 2012 at 4:51

Attachments:

GoogleCodeExporter commented 9 years ago
Please isolate bugs when reporting them.

Original comment by limpbizkit on 21 Nov 2012 at 12:31

GoogleCodeExporter commented 9 years ago
It would be nice if GSON detected circular dependencies.
Or gave some way to limit depth to, say, 2 levels.

Original comment by dynaw...@gmail.com on 23 Jan 2013 at 4:03

GoogleCodeExporter commented 9 years ago
Or gave some means to limit which values are being serialized. such as to 
exclude something you know is a circular reference. Probably a piece of data 
that doesn't explain the data you are looking at anyway.

Original comment by Boneless1213@gmail.com on 26 Feb 2013 at 7:23

GoogleCodeExporter commented 9 years ago
Do you know what field(s) are causing the circular reference? If so, we can use 
an ExclusionStrategy and the .shouldSkipField() method to handle it.
The problem is, I can't figure out what part of the exception is causing the 
circular reference.

Original comment by bradyvid...@gmail.com on 4 Mar 2014 at 8:17