Jackson ObjectMapper & JsonGenerator - is it thread-safe?
Jackson's ObjectMapper
creates a new JsonGenerator
on each request for serialization. In that sense, it is guaranteed to be thread safe. The only thing that I can see that might cause the behavior you are seeing is if your CustomSerializer
has some instance fields that it is sharing and is doing some kind of internal synchronization.