Join Slack
Powered by
would like it to return `{"mandatory":3}` instead
# serialization
r
Rainer Schlonvoigt
03/29/2019, 9:01 AM
would like it to return
{"mandatory":3}
instead
t
turansky
03/29/2019, 9:29 AM
Default value for optionalField required.
null
in your case. And then you can use
Json.encodeDefaults
flag
r
ribesg
03/29/2019, 9:31 AM
The correct answer is no, it’s not possible. You can define a default value and then use the
Json.encodeDefaults
flag as a hack.
3
Views
Open in Slack
Previous
Next