Avoid serialization of empty field #169
Replies: 3 comments
-
Oops, sorry, just seeing this now @KonradEichstaedt (I have fallen behind in my inbox/alerts). This is probably because the internal (de)serializer has values set that you're not setting on your ObjectMapper: Just to turn the If this isn't the case for you, could you give me a little reproduceable code snippet to show the issue? Thanks! |
Beta Was this translation helpful? Give feedback.
-
Just to make the connection between related issues, someone else is seeing this problem too: #174 -- Looking for a test case so I can understand how it's being serialized without the JSON util. |
Beta Was this translation helpful? Give feedback.
-
Version 0.12.3 should fix this without adding the additional module. |
Beta Was this translation helpful? Give feedback.
-
Hi Kevin,
I need to create an IIIF-Manifest Version 3.0 and used your API. The JSON Result shows always empty fields like this:
placeholderCanvas : {"empty" : true,"present" : false }
I used the default ObjectMaper of Jackson to write the JSON String.
How can I avoid this serialization of the empty fields?
Many Thanks,
Konrad
Beta Was this translation helpful? Give feedback.
All reactions