Replies: 1 comment
-
Interesting. There is no way to make that work currently but I can see how logically it would make sense. I would suggest filing a feature request for |
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
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
The following example is taken from StackOverflow, an answer by user SomethingSomething:
The enum
State
in the following POJO would be serialized as{"state": "1"}
, all good so far.However, consider the following case:
I would like to see this case result in JSON such as
{"state": 1}
, with the value being a number (int in that case) instead of a string.I would like to see something like that be supported in some way or form.
Beta Was this translation helpful? Give feedback.
All reactions