I have an unique requirement. I like to determine if an object of a given 
type can be serialized into a value depending on the registered module in 

The code should work as follows:

public boolean canConvertToValue(Class<?> type)  {
    // code goes here

//result as follows
canConvertToValue(SomeType.class) = false
canConvertToValue(String.class) = true
canConvertToValue(LocalDateTime.class) = false   // when JavaTimeModule is 
not registered
canConvertToValue(LocalDateTime.class) = true    // when JavaTimeModule is 

How do I implement canConvertToValue() using jackson? Or is that impossible 
to implement?

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