for (auto it = RecentFiles.begin(); it != RecentFiles.end(); ++it) { std::cout << it.key() << " "; std::cout << (*it)["Name"].get<std::string>() << " "; std::cout << (*it)["Last modified"].get<std::string>() << " "; }