Skip to content

Commit 2014cd8

Browse files
author
Wenhua Zhang
committed
fix: add double quotation marks to make it a valid json
1 parent 0a461c4 commit 2014cd8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/main/java/org/tron/common/utils/JsonFormat.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -322,15 +322,19 @@ protected static void printUnknownFields(UnknownFieldSet unknownFields, JsonGene
322322
} else {
323323
generator.print(", ");
324324
}
325+
generator.print("\"");
325326
generator.print(String.format((Locale) null, "0x%08x", value));
327+
generator.print("\"");
326328
}
327329
for (long value : field.getFixed64List()) {
328330
if (firstValue) {
329331
firstValue = false;
330332
} else {
331333
generator.print(", ");
332334
}
335+
generator.print("\"");
333336
generator.print(String.format((Locale) null, "0x%016x", value));
337+
generator.print("\"");
334338
}
335339
for (ByteString value : field.getLengthDelimitedList()) {
336340
if (firstValue) {

0 commit comments

Comments
 (0)