Skip to content

Commit

Permalink
fix: Json to String on the string Value of the Values class
Browse files Browse the repository at this point in the history
  • Loading branch information
diegomrno committed Nov 18, 2024
1 parent 7b1011f commit 897fb1f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main/include/vortex.h
Original file line number Diff line number Diff line change
Expand Up @@ -998,7 +998,7 @@ namespace VortexMaker
T GetJsonValue(const std::string& val) { return nlohmann::json::parse(val).get<T>(); };

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";
Expand Down

0 comments on commit 897fb1f

Please sign in to comment.