lua json library

This commit is contained in:
MihailRis
2024-04-22 17:08:20 +03:00
parent 30a38035e2
commit 8e4f8004f7
9 changed files with 126 additions and 31 deletions
+5 -3
View File
@@ -33,9 +33,9 @@ namespace dynamic {
Value(valtype type, valvalue value);
~Value();
static Value boolean(bool value);
static Value of(number_u value);
static Value of(const std::string& value);
static std::unique_ptr<Value> boolean(bool value);
static std::unique_ptr<Value> of(number_u value);
static std::unique_ptr<Value> of(const std::string& value);
};
class List {
@@ -68,6 +68,7 @@ namespace dynamic {
List& put(Map* value);
List& put(List* value);
List& put(bool value);
List& put(std::unique_ptr<Value> value);
Value* getValueWriteable(size_t index) const;
@@ -121,6 +122,7 @@ namespace dynamic {
Map& putMap(std::string key);
bool has(std::string key);
size_t size() const;
};
}