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
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