Hey guys, I am having a very similar problem. I have read your discussion on the thread, and I dont understand what you mean by "Delegating to the default serializer" ? I have overriden `createContextual` and `resolve` methods in my serializer, but this doesn't seem to work as easily. Can you please provide more explanation or a code sample ?
Thanks in advance Le mardi 29 mai 2018 20:33:46 UTC+2, Tatu Saloranta a écrit : > > On Sun, May 27, 2018 at 11:23 PM, <[email protected] <javascript:>> > wrote: > > > >> Too bad wrt 2.7.9, although I am curious as to why you think you had > >> to use 2.7.4? > >> Patch releases are API-compatible with each other and there should not > >> be any reason why you > >> would need to align patches. This is different from major and minor > >> releases that should definitely match (major must, > >> minor versions should, although some of adjacent minor versions may > work). > > > > > > You're right, of course. I could talk to the wildfly admin to pull up > the > > version of the module to 2.7.9. > > > >> It will be `null` for "root value" serializer: the value given to > >> mapper which is not referenced by > >> a property. But since contextualization may still be needed (as it may > >> differ from serializers used for > >> values referenced by a property), method is still called. > > > > > > I see. Thanks for clarification! > > > >> you would need to delegate this similarly, and this is usually more > >> important of the two. > >> Did it not get called at all? > > > > > > Yeah! That's it! Delegating to the default serializer did the thing. > > Thanks a million. You're my hero of the day :-) > > Excellent! > > -+ 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 [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jackson-user/a0bf9037-c786-427c-98cd-7daa5c2f952b%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
