1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 13:17:44 +00:00

AK: Implement a naive JSON parser.

This parser assumes that the JSON is well-formed and will choke horribly
on invalid input.

Since we're primarily interested in parsing our own output right now, this
is less of a problem. Longer-term we're gonna need something better. :^)
This commit is contained in:
Andreas Kling 2019-06-24 11:25:10 +02:00
parent bad8ab697b
commit 009b9bfd10
2 changed files with 169 additions and 0 deletions

View file

@ -21,6 +21,8 @@ public:
Object,
};
static JsonValue from_string(const StringView&);
explicit JsonValue(Type = Type::Null);
~JsonValue() { clear(); }