]>
git.proxmox.com Git - ceph.git/blob - ceph/src/jaegertracing/opentelemetry-cpp/third_party/nlohmann-json/doc/examples/operatorarray__key_type_const.cpp
2 #include <nlohmann/json.hpp>
4 using json
= nlohmann::json
;
8 // create a JSON object
11 {"one", 1}, {"two", 2}, {"three", 2.9}
14 // output element with key "two"
15 std::cout
<< object
["two"] << '\n';