Given json:
{
  "name" : {}
}
I would like to parse it into the following Java object using com.fasterxml.jackson:
class MyClass {
  private String name;
}
If you try it, you will get:
com.fasterxml.jackson.databind.exc.MismatchedInputException: Cannot deserialize instance of `java.lang.String` out of START_OBJECT token
Is there any way to configure the jackson deserializer (globally for best) it can handle these empty objects as nulls without changing the attribute type (from String)?
 
     
     
     
    