Created
March 12, 2019 18:04
-
-
Save evonsdesigns/64cd032c08f0c9563357e458f70b5588 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import com.fasterxml.jackson.core.JsonParser; | |
import com.fasterxml.jackson.databind.MapperFeature; | |
import com.fasterxml.jackson.databind.ObjectMapper; | |
public class PojoMapper { | |
private ObjectMapper mapper; | |
public PojoMapper() { | |
mapper = new ObjectMapper(); | |
mapper.configure( | |
MapperFeature.ACCEPT_CASE_INSENSITIVE_PROPERTIES, | |
true | |
); | |
mapper.configure( | |
JsonParser.Feature.ALLOW_UNQUOTED_FIELD_NAMES, | |
true | |
); | |
} | |
protected ObjectMapper getMapper() { | |
return mapper; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment