mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 22:40:05 +00:00
27 lines
677 B
C++
27 lines
677 B
C++
#pragma once
|
|
|
|
#include <boost/json.hpp>
|
|
|
|
namespace scwx
|
|
{
|
|
namespace qt
|
|
{
|
|
namespace util
|
|
{
|
|
namespace json
|
|
{
|
|
|
|
bool FromJsonString(const boost::json::object& json,
|
|
const std::string& key,
|
|
std::string& value,
|
|
const std::string& defaultValue);
|
|
|
|
boost::json::value ReadJsonFile(const std::string& path);
|
|
void WriteJsonFile(const std::string& path,
|
|
const boost::json::value& json,
|
|
bool prettyPrint = true);
|
|
|
|
} // namespace json
|
|
} // namespace util
|
|
} // namespace qt
|
|
} // namespace scwx
|