I am using JACKSON 1.6.3 version. I have one class which has a reference to itself and JACKSON serializer is failing with complains about “circular references”.
I would like to disable serialization of this class. This is a third party class and I can not add any annotation to it, I am wondering if there is a way to disable this type of object being serialized. I am ok if the serializer ignores the entire object.
I am using JACKSON 1.6.3 version. I have one class which has a reference
Share
I fixed the issue by creating a custom
JsonSerializer<T>for the type and registered it with ObjectMapper