diff --git a/dist/druid-nested-json-parser-31.0.0.jar b/dist/druid-nested-json-parser-31.0.0.jar
new file mode 100644
index 0000000..5a772bb
Binary files /dev/null and b/dist/druid-nested-json-parser-31.0.0.jar differ
diff --git a/nested-json-parser/pom.xml b/nested-json-parser/pom.xml
index 8b2c997..b5b2395 100644
--- a/nested-json-parser/pom.xml
+++ b/nested-json-parser/pom.xml
@@ -5,7 +5,7 @@
druid
org.apache.druid
- 29.0.0
+ 31.0.0
../../pom.xml
4.0.0
diff --git a/nested-json-parser/src/main/java/org/apache/druid/data/input/nested/NestedJSONInputRowParser.java b/nested-json-parser/src/main/java/org/apache/druid/data/input/nested/NestedJSONInputRowParser.java
index c37c027..a2e252f 100644
--- a/nested-json-parser/src/main/java/org/apache/druid/data/input/nested/NestedJSONInputRowParser.java
+++ b/nested-json-parser/src/main/java/org/apache/druid/data/input/nested/NestedJSONInputRowParser.java
@@ -84,7 +84,7 @@ public NestedJSONInputRowParser(
// Maybe assert that pivotSpec's dimension names exist in the
// existing specified dimensions?
Preconditions.checkArgument(
- parseSpec.getDimensionsSpec().hasCustomDimensions(),
+ parseSpec.getDimensionsSpec().hasFixedDimensions(),
"Dimensions must be explicitly provided and cannot be missing."
);
diff --git a/nested-json-parser/src/main/java/org/apache/druid/data/input/nested/NestedJsonLineReader.java b/nested-json-parser/src/main/java/org/apache/druid/data/input/nested/NestedJsonLineReader.java
index cb5be8f..3d8cc2e 100644
--- a/nested-json-parser/src/main/java/org/apache/druid/data/input/nested/NestedJsonLineReader.java
+++ b/nested-json-parser/src/main/java/org/apache/druid/data/input/nested/NestedJsonLineReader.java
@@ -40,7 +40,7 @@
import java.util.List;
import java.util.Map;
-public class NestedJsonLineReader extends TextReader
+public class NestedJsonLineReader extends TextReader.Strings
{
private final ObjectFlattener flattener;
private final ObjectMapper mapper;