mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 03:07:36 +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:
parent
bad8ab697b
commit
009b9bfd10
2 changed files with 169 additions and 0 deletions
|
@ -21,6 +21,8 @@ public:
|
|||
Object,
|
||||
};
|
||||
|
||||
static JsonValue from_string(const StringView&);
|
||||
|
||||
explicit JsonValue(Type = Type::Null);
|
||||
~JsonValue() { clear(); }
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue