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

Commented Unassigned: missing json iterators [225]

$
0
0
My package is currently not recognizing .cbegin() .cend() .begin() and .end() as valid methods on objects of type web::json::value I double checked the documentation here: http://msdn.microsoft.com/en-us/library/jj948445.aspx to make sure they are definitely included.

I tested this not only on my code but using a snippet of an accepted blog post found under community samples found here:

http://voidnish.wordpress.com/2013/05/07/casablanca-code-snippets-getting-and-parsing-json-data/

my includes and namespaces are:

```
#include <cpprest/http_client.h>
#include <cpprest/filestream.h>
#include <cpprest/json.h>
using namespace utility;
using namespace web;
using namespace web::http;
using namespace web::http::client;
using namespace concurrency::streams;
using namespace web::json;
```
Comments: Update: It seems this was just a discrepancy between older methods of handling JSON data and the current method "at()". I like the way the new method handles it, its cleaner. I know documentation is dodgy, but in my opinion it would be worth updating those samples as well as the hosted documentation or at least marking the removal. The correct methods are included in the downloadable documentation though which was something, at least.

Viewing all articles
Browse latest Browse all 4845

Trending Articles



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