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

AK: Use a single StringBuilder throughout JSON serialization.

This commit is contained in:
Andreas Kling 2019-06-17 21:34:12 +02:00
parent 3b9fcab1af
commit ee347effac
6 changed files with 77 additions and 16 deletions

View file

@ -4,6 +4,8 @@
#include <AK/HashMap.h>
#include <AK/JsonValue.h>
namespace AK {
class JsonObject {
public:
JsonObject() { }
@ -39,7 +41,12 @@ public:
}
String to_string() const;
void to_string(StringBuilder&) const;
private:
HashMap<String, JsonValue> m_members;
};
}
using AK::JsonObject;