comparison 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
comparison
equal deleted inserted replaced
5:51ae25154b70 6:1d82f6e04d7d
1 #include "../../dep/json/json.h" 1 #include "../../dep/json/json.h"
2 2
3 namespace JSON { 3 namespace JSON {
4 std::string GetString(nlohmann::json const& json, std::string const& key); 4 std::string GetString(nlohmann::json const& json, nlohmann::json::json_pointer const& ptr);
5 int GetInt(nlohmann::json const& json, std::string const& key); 5 int GetInt(nlohmann::json const& json, nlohmann::json::json_pointer const& ptr);
6 int64_t GetInt64(nlohmann::json const& json, std::string const& key); 6 bool GetBoolean(nlohmann::json const& json, nlohmann::json::json_pointer const& ptr);
7 bool GetBoolean(nlohmann::json const& json, std::string const& key); 7 double GetDouble(nlohmann::json const& json, nlohmann::json::json_pointer const& ptr);
8 double GetDouble(nlohmann::json const& json, std::string const& key);
9 } 8 }