0

Jackson 2.0 has pretty good support for cyclic reference, however, it seems that all require to annotate the POJO classes. What if I cannot edit the java classes I want to serialize to json, but want to just ignore cyclic reference like the json lib jsonConfig.setCycleDetectionStrategy(CycleDetectionStrategy.LENIENT) which basically ignore cyclic reference when one occurs.

Jeremy Chone
  • 3,079
  • 1
  • 27
  • 28

1 Answers1

2

No. Jackson does not do full cycle detection; identity checks are only done when annotation indicates that they are needed.

StaxMan
  • 113,358
  • 34
  • 211
  • 239