There is no way to do this; you can have case-insensitive properties, or
regular conversion (given POJO property, produce translated expected
external value), but no arbitrary conversions applied on-the-fly.

To support such mapping you would need to do 2-phase processing: first read
content and cleanse property names (produce canonical representation), and
after that use databinding.

-+ Tatu +-

On Wed, Jul 6, 2016 at 1:33 PM, Andrew Joseph <ap.joseph1...@gmail.com>
wrote:

> For a property, anyCase, looking to be able to get a Jackson (2.8.x)
> ObjectMapper to recognize that any_case, any-case, ANYCASE, AnYcAsE are
> equivalent for purposes of deserialization without needing to use
> annotations on individual classes.
>
> I recognize that the following is possible:
>
> mapper.enable(MapperFeature.ACCEPT_CASE_INSENSITIVE_PROPERTIES);
>
> However, this method does not work for underscores and hyphens.
>
>
> References this stackoverflow post
> <http://stackoverflow.com/questions/37909642/globally-deserialize-with-underscore-hyphen-case-insensitivity-in-jackson>
>
> --
> 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.
>

-- 
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