Re: [jackson-user] Access objectMapper from custom JsonSerializer to call valueToTree

2018-04-16 Thread Tatu Saloranta
On Mon, Apr 16, 2018 at 11:02 AM, Marcel Overdijk wrote: > Thanks Tatu! > > Another option I was thinking of was > > 1) creating the object mapper > 2) creating the serializer (and provide the created objectmapper to the > serializer e.g. via the serializers constructor) > 3)

Re: [jackson-user] Access objectMapper from custom JsonSerializer to call valueToTree

2018-04-16 Thread Marcel Overdijk
Thanks Tatu! Another option I was thinking of was 1) creating the object mapper 2) creating the serializer (and provide the created objectmapper to the serializer e.g. via the serializers constructor) 3) create a module and register the serializer 4) register the module with the objectmapper