Skip to content

Commit

Permalink
readFieldNameUnquote support comment
Browse files Browse the repository at this point in the history
  • Loading branch information
wenshao committed Aug 25, 2024
1 parent 6c3067d commit 935fff6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions core/src/main/java/com/alibaba/fastjson2/JSONReader.java
Original file line number Diff line number Diff line change
Expand Up @@ -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("")) {
Expand Down

0 comments on commit 935fff6

Please sign in to comment.