Is it possible to provide (request-based) context to a custom 
`JsonSerializer`? Like a `fieldsets` request param to remove some fields 
from the generated json?

Or is the best option to bind the needed context to a `ThreadLocal`?

Basically when calling objectMapper.writeValueAsString(document) in a 
custom serializer I want to change the json data based on a particular 
context which is not part of the provided document.


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+unsubscr...@googlegroups.com.
To post to this group, send email to jackson-user@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to