1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 09:47:35 +00:00

AK+LibIPC: Add a convenience encoder/decoder for JsonValue

This requires that JsonValue is implicitly default-constructible.
This commit is contained in:
Timothy Flynn 2022-11-07 16:30:55 -05:00 committed by Tim Flynn
parent 08750f69e4
commit 3994a79718
5 changed files with 21 additions and 1 deletions

View file

@ -35,7 +35,8 @@ public:
static ErrorOr<JsonValue> from_string(StringView);
explicit JsonValue(Type = Type::Null);
JsonValue() = default;
explicit JsonValue(Type);
~JsonValue() { clear(); }
JsonValue(JsonValue const&);