diff --git a/spring-ai-core/src/main/java/org/springframework/ai/loader/impl/JsonLoader.java b/spring-ai-core/src/main/java/org/springframework/ai/loader/impl/JsonLoader.java index d3609742d9..28a7c8fe8d 100644 --- a/spring-ai-core/src/main/java/org/springframework/ai/loader/impl/JsonLoader.java +++ b/spring-ai-core/src/main/java/org/springframework/ai/loader/impl/JsonLoader.java @@ -44,6 +44,7 @@ public List load(TextSplitter textSplitter) { TypeReference> typeRef = new TypeReference>() { }; + List documents = new ArrayList<>(); try { // TODO, not all json will be an array