From 897fb1f4d2d6c52c7d11e119bb738b4aec7566f7 Mon Sep 17 00:00:00 2001 From: diegomrno Date: Tue, 19 Nov 2024 00:42:51 +0100 Subject: [PATCH] fix: Json to String on the string Value of the Values class --- main/include/vortex.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main/include/vortex.h b/main/include/vortex.h index f1bfb23..269722e 100755 --- a/main/include/vortex.h +++ b/main/include/vortex.h @@ -998,7 +998,7 @@ namespace VortexMaker T GetJsonValue(const std::string& val) { return nlohmann::json::parse(val).get(); }; void SetValue(const std::string &val) { value = val; }; - void SetJsonValue(const nlohmann::json &val) { value = val; }; + void SetJsonValue(const nlohmann::json &val) { value = val.dump(); }; private: std::string value = "null";