-
-
Notifications
You must be signed in to change notification settings - Fork 149
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Set of custom objects with IGNORE_UNKNOWN
brokes silently csv
#51
Comments
Thank you for reporting this. Broken output is wrong, regardless, so I hope this is something that can just be fixed. I am not against option(s) that allow choosing simple |
Ok. So the technical challenge is that Second problem, then, is whether there might be better handling here for nested POJOs: as things are, arrays can be handled by using array separator. But it is not clear what should be done for contents. |
Yes; use of @pimuzzo You may see if |
IGNORE_UNKNOWN
brokes silently csv
When I use a Set (but I think a Collection) of objects with feature
JsonGenerator.Feature.IGNORE_UNKNOWN
extra line separators are added.I paste the code to reproduce it:
Version is 2.9.0
A workaround would be to write a custom serializer, but with a class with a lot of fields it was very hard to find which field has broken silently the csv.
Is there any way to use the toString rappresentation for cases like this one?
If you prefer I can open a PR with that code instead of paste it here.
The text was updated successfully, but these errors were encountered: