Added more get/put methods to json objects

This commit is contained in:
MihailRis
2023-11-10 21:26:09 +03:00
parent 65eb851fd8
commit b9ed7a2b28
2 changed files with 19 additions and 0 deletions
+3
View File
@@ -72,6 +72,7 @@ namespace json {
JArray& put(uint value);
JArray& put(int value);
JArray& put(float value);
JArray& put(number_t value);
JArray& put(std::string value);
JArray& put(JObject* value);
@@ -86,6 +87,7 @@ namespace json {
void str(std::string key, std::string& dst) const;
void num(std::string key, int& dst) const;
void num(std::string key, float& dst) const;
void num(std::string key, uint& dst) const;
void num(std::string key, number_t& dst) const;
JObject* obj(std::string key) const;
@@ -94,6 +96,7 @@ namespace json {
JObject& put(std::string key, uint value);
JObject& put(std::string key, int value);
JObject& put(std::string key, float value);
JObject& put(std::string key, number_t value);
JObject& put(std::string key, std::string value);
JObject& put(std::string key, JObject* value);