[英]String to JSON in Poco/JSON or rapidjson
我想將以下 std::string 消息轉換為 json 對象,以便我可以輕松地遍歷該對象並根據需要獲取鍵/值對。
我更喜歡使用 Rapidjson 或 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"}
將字符串轉換為文檔,然后解析
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.