Mercurial > minori
diff src/include/json.h @ 2:23d0d9319a00
Update
Also converted everything to LF from CRLF
author | Paper <mrpapersonic@gmail.com> |
---|---|
date | Sat, 12 Aug 2023 03:16:26 -0400 |
parents | |
children | 1d82f6e04d7d |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/include/json.h Sat Aug 12 03:16:26 2023 -0400 @@ -0,0 +1,9 @@ +#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); +}