16using json = nlohmann::json;
32bool Get(
const json& j,
const std::string& name,
T& t)
34 auto iter = j.find(name);
42 catch (nlohmann::detail::exception&)
json Parse(std::string_view path_name)
从 文件 构建json对象
bool Get(const json &j, const std::string &name, T &t)
从json返回值,不存在则返回false,并且不进行任何操作