i want to convert the following std::string message into a json object so that I can easily to traverse the object and get the key/value pair as needed.
I prefer to use either rapidjson or Poco::JSON
std::string request;
std::cout << request << std::endl;
This is the output of request: {"USER_ID":"1","Exchange":"NASDAQ","ActionType":"BUY","OrderType":"MARKET","Quantity":"100","TimeInForce":"GTC"}
将字符串转换为文档,然后解析
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.