@JsonView not propagated to (“nested”) custom serializer

41 views
Skip to first unread message

Burkhard Graves

unread,
Nov 27, 2018, 11:05:39 PM11/27/18
to jackson-user
I hope it's ok if I just provide a link to my question on SO:


Otherwise I'll do better next time. ;-)

Tatu Saloranta

unread,
Nov 27, 2018, 11:14:10 PM11/27/18
to jackso...@googlegroups.com
If the call is exactly as shown and version of Jackson relatively new,
this might be a bug. View information should be retained.
But it is possible this could be due to certain code constructs such
as calling `writeObject()` on `JsonGenerator`, which will result in
new `SerializerProvider` (context) being created.
This is why full reproduction with exact code would be needed: if so,
filing an issue makes sense.


-+ Tatu +-
> --
> You received this message because you are subscribed to the Google Groups "jackson-user" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to jackson-user...@googlegroups.com.
> To post to this group, send email to jackso...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

Burkhard Graves

unread,
Nov 28, 2018, 5:54:22 AM11/28/18
to jackson-user
Thanks for your answer, I've filed an issue with a small test project attached: https://github.com/FasterXML/jackson-databind/issues/2193

Reply all
Reply to author
Forward
0 new messages