Skip to content
This repository has been archived by the owner on Apr 14, 2023. It is now read-only.

Support SerializationFeature.WRITE_EMPTY_JSON_ARRAYS #9

Open
cowtowncoder opened this issue Jul 16, 2015 · 1 comment
Open

Support SerializationFeature.WRITE_EMPTY_JSON_ARRAYS #9

cowtowncoder opened this issue Jul 16, 2015 · 1 comment

Comments

@cowtowncoder
Copy link
Member

(note: cleaved from #7)

It would be nice to support this SerializationFeature, along with other options to filter out "empty" items of various types.

@cowtowncoder
Copy link
Member Author

Hmmh. Looking at code in jackson-databind, this may be surprisingly difficult to make work as expected -- problem being that check is based on JavaType being container (array, Collection, Map), which is something that ArrayNode and ObjectNode are not.
May need to see if we could change handling in 2.7 or later.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant