Problem with parsing json

Aug 12, 2015 at 9:14 AM
Edited Aug 12, 2015 at 11:28 AM
Hi everybody
I am new with JSON and with Cpp REST SDK. I want to create an aplication for parsing json requests.
I found some examples and help on the Internet and tried to realize it.
Code below:
        json::value jsone = json::value::parse(stream.str());

    for (auto iter = jsone.as_object().cbegin(); iter != jsone.as_object().cend(); ++iter)
    {

    const utility::string_t &k = iter->first;
    const json::value &v = iter->second;

    std::wcout << k << L" : " << v.serialize() << std::endl;
    }
Also i used this post https://casablanca.codeplex.com/discussions/539940
Unfortunately, i got an error:
Unhandled exception at 0x75864DBD in testSDK.exe: Microsoft Cpp exception: web::json::json_exception at memory location 0x004BF220.
How can i fix this?
I'm using VS 2013 and v. 2.6.0 REST SDK