I have an unique requirement. I have a type and I need to determine 
generically if any object of that type can be serialized into a value or 
not depending which module is registered in the objectmapper.

The code will work as follows:

public boolean canConvertValue(Class<?> type) {  /* code goes here */ }

// result
canConvertValue(SomeType.class) = false
canConvertValue(String.class) = true
canConvertValue(LocalDateTime.class) = false  // when JavaTimeModule is not 
canConvertValue(LocalDateTime.class) = true   // when JavaTimeModule is 

How do I implement canConvertValue using jackson? Or is that impossible?

Anindya Chatterjee

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.

Reply via email to