Micronaut Serialization - how to include empty list properties in response body? #7289
-
I'm running into a problem regarding serialization of HTTP responses. Under normal circumstances, I get the following HTTP response body from a Micronaut endpoint where a
However, if the
Here is what I would like to receive when the
I tried adding the following code to my
Any suggestions on what else to try and/or how to go about debugging this? Thanks in advance! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
You can inject a JsonMapper into a unit test and use it to serialize your object manually. |
Beta Was this translation helpful? Give feedback.
You can inject a JsonMapper into a unit test and use it to serialize your object manually.