Issue while deserializing #264
Unanswered
sukesh2000
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey folks,
I've a kotlin data classes like this:
Now when I serialize the
Config
class usingI get this in the YAML
And I don't want these fields to be present in my output YAML if there isn't any data, are there any flags present which can skip these kind of empty keys?
I've tried combination of adding flags like
JsonInclude.Include.NON_EMPTY, JsonInclude.Include.NON_NULL, JsonInclude.Include.NON_ABSENT, JsonInclude.Include.NON_DEFAULT
on top ofConfig
class and individual data classes but none of it seems to be working. Kindly help.Beta Was this translation helpful? Give feedback.
All reactions