mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-11-02 08:00:04 +00:00
Refactor json utility to wxdata, add ReadJsonString function
This commit is contained in:
parent
895e760fee
commit
9f33189c18
12 changed files with 245 additions and 228 deletions
|
|
@ -1,7 +1,5 @@
|
|||
#pragma once
|
||||
|
||||
#include <optional>
|
||||
|
||||
#include <boost/json/value.hpp>
|
||||
|
||||
namespace scwx
|
||||
|
|
@ -13,10 +11,7 @@ namespace util
|
|||
namespace json
|
||||
{
|
||||
|
||||
boost::json::value ReadJsonFile(const std::string& path);
|
||||
void WriteJsonFile(const std::string& path,
|
||||
const boost::json::value& json,
|
||||
bool prettyPrint = true);
|
||||
boost::json::value ReadJsonQFile(const std::string& path);
|
||||
|
||||
} // namespace json
|
||||
} // namespace util
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue