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

New Post: Creating a json::value from a json string

$
0
0
I have a string
"{
"username": "xyz",
"password": "abc"
}"
How can I convert it to json::value? I found a way wherein I create a http_response with content-type "application/json" and body as the above string and then use the function extract_json. But surely there has to be a simpler way?

Viewing all articles
Browse latest Browse all 4845

Latest Images

Trending Articles



Latest Images

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