diff --git a/json-path/src/main/java/com/jayway/jsonpath/spi/json/JacksonJsonNodeJsonProvider.java b/json-path/src/main/java/com/jayway/jsonpath/spi/json/JacksonJsonNodeJsonProvider.java index 82ab48f5..fee35605 100644 --- a/json-path/src/main/java/com/jayway/jsonpath/spi/json/JacksonJsonNodeJsonProvider.java +++ b/json-path/src/main/java/com/jayway/jsonpath/spi/json/JacksonJsonNodeJsonProvider.java @@ -101,8 +101,8 @@ public class JacksonJsonNodeJsonProvider extends AbstractJsonProvider { return e.asInt(); } else if (e.isLong()) { return e.asLong(); - } else if (e.isBigDecimal()) { - return e.decimalValue(); + } else if (e.isBigInteger()) { + return e.bigIntegerValue(); } else if (e.isDouble()) { return e.doubleValue(); } else if (e.isFloat()) {