mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 13:38:11 +00:00
LibJS: Fix obviously wrong \uXXXX serialization in JSONObject
This commit is contained in:
parent
349cf6ad67
commit
91db36064f
1 changed files with 1 additions and 1 deletions
|
@ -380,7 +380,7 @@ String JSONObject::quote_json_string(String string)
|
|||
break;
|
||||
default:
|
||||
if (ch < 0x20) {
|
||||
builder.append("\\u%#08x", ch);
|
||||
builder.appendff("\\u{:04x}", ch);
|
||||
} else {
|
||||
builder.append(ch);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue