2.7.9 does not work either :-(
But I am bound to use 2.7.4 anyway.
And implementing ResolvableSerializer and ContextualSerializer in the
following way still results in a NPE in WritableObjectId.writeAsField.
BTW, why is the property in createContextual 'null'?
Any other ideas/suggestions?
Thanks in advance.
@Overridepublic void resolve(SerializerProvider serializerProvider) throws
JsonMappingException {
if (defaultSerializer instanceof ResolvableSerializer) {
((ResolvableSerializer) defaultSerializer).resolve(
serializerProvider);
}
}
@Override
public JsonSerializer<?> createContextual(SerializerProvider prov,
BeanProperty property) throws JsonMappingException {
System.out.println("Property: " + property);
return defaultSerializer;
}
--
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].
For more options, visit https://groups.google.com/d/optout.