Skip to content

Commit

Permalink
fix #3264
Browse files Browse the repository at this point in the history
  • Loading branch information
wenshao committed Jan 11, 2025
1 parent fb9dc31 commit 15d1850
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -617,8 +617,10 @@ public void writeWithFilter(JSONWriter jsonWriter, Object object, Object fieldNa
String key;
if (entryKey == null) {
key = null;
} else if (entryKey instanceof String) {
key = (String) entryKey;
} else {
key = entryKey.toString();
key = JSON.toJSONString(entryKey, jsonWriter.getContext());
}

if (refDetect) {
Expand Down

0 comments on commit 15d1850

Please sign in to comment.