Skip to content

Commit

Permalink
fix read none-string key error
Browse files Browse the repository at this point in the history
  • Loading branch information
wenshao committed Aug 25, 2024
1 parent 935fff6 commit 9fd7031
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions core/src/main/java/com/alibaba/fastjson2/JSONReader.java
Original file line number Diff line number Diff line change
Expand Up @@ -2270,6 +2270,10 @@ public Map<String, Object> readObject() {
if (ch == '-' || (ch >= '0' && ch <= '9')) {
readNumber0();
name = getNumber();
} else if (ch == '{') {
name = readObject();
} else if (ch == '[') {
name = readArray();
} else {
name = readFieldNameUnquote();
}
Expand Down

0 comments on commit 9fd7031

Please sign in to comment.