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

New Post: JSON String Conversion Problems.

$
0
0
Hopefully someone can help me out here. I'm using Casablanca on Windows Phone 8, and have the following issue.

json::value v;
v[L"Hello"] = json::value::string(U("World"))

client.request(methods::POST,L"",v.to_string(),L"applications/json").then[](http_response response) {
// more code here
}

Delivers the following to my server:
{u'Hello' : u'World'}

Which is not valid JSON. Is there any special magical incantations I need to use to correctly format the data for uploading?

Viewing all articles
Browse latest Browse all 4845

Trending Articles