FormCompiler: Oops, need to use JsonValue::serialized() for properties
When assigning properties, we were relying on the JSON serialization code to wrap strings in double-quotes ("). JsonValue::to_string() does not wrap string values, so what we want here is serialized(). :^)
This commit is contained in:
parent
351c354680
commit
c258c9a4b2
Notes:
sideshowbarker
2024-07-19 12:49:57 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/c258c9a4b23
1 changed files with 1 additions and 1 deletions
|
@ -80,7 +80,7 @@ int main(int argc, char** argv)
|
|||
if (property_value.is_null())
|
||||
value = "{}";
|
||||
else
|
||||
value = property_value.to_string();
|
||||
value = property_value.serialized<StringBuilder>();
|
||||
|
||||
dbg() << " " << name << "->set_" << property_name << "(" << value << ");";
|
||||
});
|
||||
|
|
Loading…
Add table
Reference in a new issue