json/conan/test_package/example.cpp

16 lines
282 B
C++
Raw Normal View History

2017-06-14 14:58:29 +03:00
#include "json.hpp"
#include <iostream>
using nlohmann::json;
int main()
{
const json myJson = {
{ "Hello", "World" }
};
for (auto it{ myJson.cbegin() }; it != myJson.cend(); ++it)
{
std::cout << it.key() << " " << it.value() << std::endl;
}
}