Skip to content

Instantly share code, notes, and snippets.

@evonsdesigns
Created March 12, 2019 18:04
Show Gist options
  • Save evonsdesigns/64cd032c08f0c9563357e458f70b5588 to your computer and use it in GitHub Desktop.
Save evonsdesigns/64cd032c08f0c9563357e458f70b5588 to your computer and use it in GitHub Desktop.
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