Disable JsonIdentityInfo serialization #4619
jwgmeligmeyling
started this conversation in
Ideas
Replies: 1 comment 1 reply
-
To me, use of Another possibility for "optional" use are mix-in annotations: |
Beta Was this translation helpful? Give feedback.
1 reply
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
-
Some clients may not support
@JsonIdentityInfo
. It would then be convenient to disable this feature on aObjectMapper
level.I've found this question asked before on Stack Overflow: https://stackoverflow.com/questions/29991236/ignore-the-jackson-jsonidentityinfo-during-serialization . The suggested solution there is to use a
JacksonAnnotationIntrospector
to ignore the@JsonIdentityInfo
annotations. I don't think there has been a response from the contributors however, and I am looking for alternative solutions that are a bit more flexible?Would it be an idea to introduce a
SerializationFeature.USE_OBJECT_ID
? Or perhaps a@JsonIdentityReference(neverAsId = true)
for deserialisation use-cases that rely on aObjectIdResolver
.Beta Was this translation helpful? Give feedback.
All reactions