Hi All! But what can I do when I want to use annotation, and I don't have access to the mapper? Eg:
@JsonSerialize(using = ASerializer.class) public class AClass { ... } BR, Zsolt 2015. június 23., kedd 16:18:36 UTC+2 időpontban Tim Dudgeon a következőt írta: > > Hi, > > I'm writing a custom serialiizer, extending StdSerializer. > In the > public void serialize(MoleculeObject mo, JsonGenerator jg, > SerializerProvider sp) > method I need to be able to access the default json serialization > mechanism, but I don't see how to do this. > I can't call super.serialize() as its abstract, and using > JsonGenerator.writeObject() or SerializerProvider.defaultSerializeValue() > end up calling my custom serialize() method and end up with stack overflow. > > How should I be doing this? > > Tim > -- 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.