16 lines
296 B
C++
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>();
|
|
}
|