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

New Post: field_map is not a member of web::json::Value

$
0
0
StevetGates, what is used instead of field_maps?

I have to get my code working. But can't, because of this field_map

int _tmain(int argc, _TCHAR* argv[])
{
                 listener.support(methods::POST, handle_post);
}

void handle_get(http_request request)
{   
    //TRACE(L"\nhandle GET\n");    
    
    json::value::field_map answer;    

    for(auto const & p : dictionary)   
    {      
        answer.push_back(make_pair(json::value(p.first), json::value(p.second)));   
    }    
    request.reply(status_codes::OK, json::value::object(answer));
}

Viewing all articles
Browse latest Browse all 4845

Trending Articles



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