Refactor json utility to wxdata, add ReadJsonString function

This commit is contained in:
Dan Paulat 2025-02-01 18:21:41 -06:00
parent 895e760fee
commit 9f33189c18
12 changed files with 245 additions and 228 deletions

View file

@ -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