mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 16:47:36 +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;
|
break;
|
||||||
default:
|
default:
|
||||||
if (ch < 0x20) {
|
if (ch < 0x20) {
|
||||||
builder.append("\\u%#08x", ch);
|
builder.appendff("\\u{:04x}", ch);
|
||||||
} else {
|
} else {
|
||||||
builder.append(ch);
|
builder.append(ch);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue