Quantcast
Channel: WE MOVED to github.com/microsoft/cpprestsdk. This site is not monitored!
Viewing all articles
Browse latest Browse all 4845

New Post: Hello World with C++ REST SDK

$
0
0
If you call request.reply() with json data (answer), the response is sent with content-type = application/json. The browser may or may not display the JSON data as a string, it depends on how the browser handles content-type application/json.
To send the JSON value as a string (content-type = text/plain), I would suggest passing answer.to_string() in the response.

Thanks
Kavya.

Viewing all articles
Browse latest Browse all 4845

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>