diff --git a/api-test/backend/src/main/java/io/metersphere/api/dto/definition/request/assertions/document/Document.java b/api-test/backend/src/main/java/io/metersphere/api/dto/definition/request/assertions/document/Document.java index 2a509aeab9..8941845ccd 100644 --- a/api-test/backend/src/main/java/io/metersphere/api/dto/definition/request/assertions/document/Document.java +++ b/api-test/backend/src/main/java/io/metersphere/api/dto/definition/request/assertions/document/Document.java @@ -89,7 +89,7 @@ public class Document { if (StringUtils.isEmpty(item.getGroupId())) { if (!item.getId().equals(PropertyConstant.ROOT)) { if (parentNode != null) { - if (parentNode.getType().equals(PropertyConstant.ARRAY) && StringUtils.equalsAnyIgnoreCase(item.getType(), PropertyConstant.STRING, PropertyConstant.INTEGER)) { + if (parentNode.getType().equals(PropertyConstant.ARRAY)) { try { int index = StringUtils.isNotEmpty(item.getName()) ? Integer.parseInt(item.getName()) : i; item.setJsonPath(parentNode.getJsonPath() + "[" + index + "]");