Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

testException = com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException: Unrecognized field

ObjectMapper mapper = new ObjectMapper();
mapper.disable(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES);
mapper.setVisibility(VisibilityChecker.Std.defaultInstance().withFieldVisibility(JsonAutoDetect.Visibility.ANY));
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #testException #Unrecognized #field
ADD COMMENT
Topic
Name
7+5 =