How to use @JsonIdentityInfo with circular references?

It seems jackson-jr has a subset of Jackson’s features. @JsonIdentityInfo must not have made the cut. If you can use the full Jackson library, just use a standard ObjectMapper with the @JsonIdentityInfo annotation you suggested in your question and serialize your object. For example @JsonIdentityInfo(generator=ObjectIdGenerators.IntSequenceGenerator.class, property=”@id”) public class A {/* all that good stuff */} … Read more