microsoft / cpprestsdk

The C++ REST SDK is a Microsoft project for cloud-based client-server communication in native code using a modern asynchronous C++ API design. This project aims to help C++ developers connect to and interact with services.
Other
8.01k stars 1.65k forks source link

websocket_client and json::value are oil and water on Windows #1349

Open DHowett-MSFT opened 4 years ago

DHowett-MSFT commented 4 years ago

Without jumping through hoops, it is practically impossible to receive a message from a websocket client and parse it as JSON.

garethsb commented 4 years ago

There are std::istream (UTF-8) overloads on Windows. It would make sense to me to add std::string overloads as well.

https://github.com/microsoft/cpprestsdk/blob/b94bc32ff84e815ba44c567f6fe4af5f5f6b3048/Release/include/cpprest/json.h#L439-L459

garethsb commented 4 years ago

Resolved by #1350 (in 2.10.16)?