Skip to content

Commit 6335922

Browse files
committed
Case-insensitive deserialize Intuit response #224
1 parent 4cee11c commit 6335922

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ipp-v3-java-devkit/src/main/java/com/intuit/ipp/serialization/IntuitResponseDeserializer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,7 @@ public IntuitResponse deserialize(JsonParser jp, DeserializationContext desConte
152152
mapper.setAnnotationIntrospector(pair);
153153

154154
mapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false);
155+
mapper.configure(MapperFeature.ACCEPT_CASE_INSENSITIVE_PROPERTIES, true);
155156

156157

157158
//Read the QueryResponse as a tree
@@ -172,7 +173,6 @@ public IntuitResponse deserialize(JsonParser jp, DeserializationContext desConte
172173

173174
//Attributes
174175
if (key.equalsIgnoreCase(FAULT)) {
175-
mapper.configure(MapperFeature.ACCEPT_CASE_INSENSITIVE_PROPERTIES, true);
176176
qr.setFault(mapper.treeToValue(jn.get(key), Fault.class));
177177
continue;
178178
} else if (key.equalsIgnoreCase(REPORT)) {

0 commit comments

Comments
 (0)