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

Closed 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: Duplicate, fixed in 2.0 as well.

Viewing all articles
Browse latest Browse all 4845

Trending Articles



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