#include "yaml-cpp/value.h" #include int main() { YAML::Value value = YAML::Parse("{foo: bar, monkey: value}"); for(YAML::const_iterator it=value.begin();it!=value.end();++it) { std::cout << it->first.as() << " -> " << it->second.as() << "\n"; } return 0; }