#include <iostream>
#include <nlohmann/json.hpp>

using json = nlohmann::json;

int main()
{
    // create a JSON object
    json j_object = {{"one", 1}, {"one", 2}, {"one", 3}, {"one", 4}, {"one", 5}, {"one", 6}};

    // call find
    auto it_one = j_object.find("one");

    // print values
    std::cout << std::boolalpha;
    std::cout << "value at key \"one\": " << *it_one << '\n';