diff --git a/core/src/main/java/com/alibaba/fastjson2/JSONReader.java b/core/src/main/java/com/alibaba/fastjson2/JSONReader.java index 35e6c78412..1402168a0c 100644 --- a/core/src/main/java/com/alibaba/fastjson2/JSONReader.java +++ b/core/src/main/java/com/alibaba/fastjson2/JSONReader.java @@ -651,6 +651,9 @@ public final boolean isTypeRedirect() { public abstract long readFieldNameHashCodeUnquote(); public final String readFieldNameUnquote() { + if (ch == '/') { + skipComment(); + } readFieldNameHashCodeUnquote(); String name = getFieldName(); if (name == null || name.equals("")) {