3 #include <boost/property_tree/json_parser.hpp>
10 if (!session_id_or_json.empty() && session_id_or_json[0] ==
'{') {
11 std::istringstream iss(session_id_or_json);
12 boost::property_tree::ptree ptree;
13 boost::property_tree::read_json(iss, ptree);
23 boost::property_tree::ptree ptree;
24 std::ostringstream oss;
27 constexpr
bool pretty_print =
false;
28 boost::property_tree::write_json(oss, ptree, pretty_print);
logger::RequestId request_id_
RequestInfo(std::string const &session_id_or_json)