comparison include/core/json.h @ 9:5c0397762b53

INCOMPLETE: megacommit :)
author Paper <mrpapersonic@gmail.com>
date Sun, 10 Sep 2023 03:59:16 -0400
parents
children fe719c109dbc
comparison
equal deleted inserted replaced
8:b1f73678ef61 9:5c0397762b53
1 #ifndef __core__json_h
2 #define __core__json_h
3 #include "../../dep/json/json.h"
4 namespace JSON {
5 std::string GetString(nlohmann::json const& json, nlohmann::json::json_pointer const& ptr, std::string def = "");
6 int GetInt(nlohmann::json const& json, nlohmann::json::json_pointer const& ptr, int def = 0);
7 bool GetBoolean(nlohmann::json const& json, nlohmann::json::json_pointer const& ptr, bool def = false);
8 double GetDouble(nlohmann::json const& json, nlohmann::json::json_pointer const& ptr, double def = 0);
9 } // namespace JSON
10 #endif // __core__json_h