CCEngineServer/CMakeProject1/JSONSerialization.cpp
2021-08-29 23:21:55 +02:00

16 lines
296 B
C++

#include "JSONSerialization.h"
namespace pt = boost::property_tree;
void serialize(std::ostream & os, const std::string & str)
{
os << '"'
<< str
<< '"';
}
void deserialize(const pt::ptree & tree, std::string & stringVal)
{
stringVal = tree.get_value<std::string>();
}