mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-22 09:19:03 +00:00
AK+Kernel: Escape JSON keys & values
Grab the escaping logic from JSON string value serialization and use it for serializing all keys and values. Fixes #3917.
This commit is contained in:
@@ -61,7 +61,7 @@ public:
|
||||
{
|
||||
begin_item();
|
||||
m_builder.append('"');
|
||||
m_builder.append(value);
|
||||
m_builder.append_escaped_for_json(value);
|
||||
m_builder.append('"');
|
||||
}
|
||||
|
||||
@@ -69,7 +69,7 @@ public:
|
||||
{
|
||||
begin_item();
|
||||
m_builder.append('"');
|
||||
m_builder.append(value);
|
||||
m_builder.append_escaped_for_json(value);
|
||||
m_builder.append('"');
|
||||
}
|
||||
|
||||
@@ -77,7 +77,7 @@ public:
|
||||
{
|
||||
begin_item();
|
||||
m_builder.append('"');
|
||||
m_builder.append(value);
|
||||
m_builder.append_escaped_for_json(value);
|
||||
m_builder.append('"');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user