Mercurial > minori
diff src/include/json.h @ 6:1d82f6e04d7d
Update: add first parts to the settings dialog
author | Paper <mrpapersonic@gmail.com> |
---|---|
date | Wed, 16 Aug 2023 00:49:17 -0400 |
parents | 23d0d9319a00 |
children | 07a9095eaeed |
line wrap: on
line diff
--- a/src/include/json.h Sat Aug 12 13:10:34 2023 -0400 +++ b/src/include/json.h Wed Aug 16 00:49:17 2023 -0400 @@ -1,9 +1,8 @@ -#include "../../dep/json/json.h" - -namespace JSON { - std::string GetString(nlohmann::json const& json, std::string const& key); - int GetInt(nlohmann::json const& json, std::string const& key); - int64_t GetInt64(nlohmann::json const& json, std::string const& key); - bool GetBoolean(nlohmann::json const& json, std::string const& key); - double GetDouble(nlohmann::json const& json, std::string const& key); -} +#include "../../dep/json/json.h" + +namespace JSON { + std::string GetString(nlohmann::json const& json, nlohmann::json::json_pointer const& ptr); + int GetInt(nlohmann::json const& json, nlohmann::json::json_pointer const& ptr); + bool GetBoolean(nlohmann::json const& json, nlohmann::json::json_pointer const& ptr); + double GetDouble(nlohmann::json const& json, nlohmann::json::json_pointer const& ptr); +}