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

New Post: I need a simple working code to parse a json file in the local memory.

$
0
0
Hi Wilsoftson,

There are many different ways you can do this. Like I mentioned all you need to do is get the json data into string or a stream. Here is one such example using a std::istream:
    std::ifstream inputStream("json.data", std::ifstream::in);
    ::web::json::value v = ::web::json::value::parse(inputStream);
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>