Skip to content

Commit 5390217

Browse files
committed
Merge pull request #852 from chadselph/patch-1
also parse scientific notation as a double/decimal
2 parents 38f2780 + d586506 commit 5390217

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/fasterxml/jackson/databind/deser/std/NumberDeserializers.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -455,7 +455,7 @@ public Object deserialize(JsonParser p, DeserializationContext ctxt) throws IOEx
455455
return Double.NaN;
456456
}
457457
try {
458-
if (text.indexOf('.') >= 0) { // floating point
458+
if (text.indexOf('.') >= 0 || text.indexOf('E') >= 0) { // floating point
459459
if (ctxt.isEnabled(DeserializationFeature.USE_BIG_DECIMAL_FOR_FLOATS)) {
460460
return new BigDecimal(text);
461461
}

0 commit comments

Comments
 (0)