StevetGates, what is used instead of field_maps?
I have to get my code working. But can't, because of this field_map
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));
}