This repository was archived by the owner on Dec 19, 2023. It is now read-only.
Jackson Serialization #981
Unanswered
owengalenjones
asked this question in
Q&A
Replies: 1 comment
-
In both cases this isn't the right project to ask, since this is the kickstart library that uses the graphql-java lib under the hood. I suggest you first check out the DGS project and get support there. Could be they'll refer you to graphql-java if necessary. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello, I'm a little unclear about how to go about using Jackson to serialize objects. I have an annotated POJO:
and am invoking GraphQL through the DGS framework:
The
data
property that I get back is anObject
typedLinkedHashMap
that does not appear to have followed the Jackson annotations:It appears that something has per-emptively changed the type to
LinkedHashMaps
prior to running Jackson serialization, resulting in the actual field names, not the annotated JSON properties.If I manually serialize it I get the expected result (the property obeys the
@JsonProperty
annotation):I can't tell if this is a graphql-java or DGS issue, apologies if it's the later!
Beta Was this translation helpful? Give feedback.
All reactions