mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 10:27:35 +00:00
AK: Use a single StringBuilder throughout JSON serialization.
This commit is contained in:
parent
3b9fcab1af
commit
ee347effac
6 changed files with 77 additions and 16 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue