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

Commented Unassigned: JSon rendering issue [96]

$
0
0
Hello,
I am playing a bit with http_listener and json and I get a resulting JSON that doesn't look right. The code is pretty simple:

```
web::json::value jVoices;
jVoices[L"voices"] = web::json::value::array();

request.reply(web::http::status_codes::OK, jVoices);
```

The output is:

{"voices":]}

it should be

{"voices":[]}

Is this a bug?

Thanks,
Pedro
Comments: Hi Pedro, Yes this was an embarrassing issue with our 1.4 release. It is known and there already is an issue for it: http://casablanca.codeplex.com/workitem/73 The good news is it is fixed in our 2.0 release that came out today :). Thanks, Steve

Viewing all articles
Browse latest Browse all 4845

Trending Articles



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