You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
websocket_client allows you to receive message bodies as streams of uint8_t or as std::strings, which are both utf-8 (also, per specification, the only valid encoding for JSON is utf-8)
json::value::parse allows you to pass utility::string_t or utility::istream_t, which on Windows are typedef'd to wstring and basic_stream<wchar_t> (wistream) and therefore utf-16 (also, per specification, the only valid encoding for JSON is utf-8)
Without jumping through hoops, it is practically impossible to receive a message from a websocket client and parse it as JSON.