]>
git.proxmox.com Git - ceph.git/blob - ceph/src/jaegertracing/opentelemetry-cpp/third_party/nlohmann-json/doc/examples/operatorarray__size_type_const.cpp
2 #include <nlohmann/json.hpp>
4 using json
= nlohmann::json
;
9 const json array
= {"first", "2nd", "third", "fourth"};
11 // output element at index 2 (third element)
12 std::cout
<< array
.at(2) << '\n';