Util: Add a JSON stringifier

This commit is contained in:
Riyyi
2022-06-22 14:23:29 +02:00
parent c385432bb0
commit aad95de5fd
3 changed files with 179 additions and 0 deletions
+2
View File
@@ -44,6 +44,8 @@ public:
Value operator[](size_t index);
Value operator[](const std::string& key);
Type type() const { return m_type; }
bool asBool() const { return m_value.asBool; }
double asDouble() const { return m_value.asDouble; }
const std::string& asString() const { return *m_value.asString; }