]> git.proxmox.com Git - ceph.git/blob - ceph/src/jaegertracing/opentelemetry-cpp/third_party/nlohmann-json/doc/examples/basic_json__nullptr_t.cpp
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / jaegertracing / opentelemetry-cpp / third_party / nlohmann-json / doc / examples / basic_json__nullptr_t.cpp
1 #include <iostream>
2 #include <nlohmann/json.hpp>
3
4 using json = nlohmann::json;
5
6 int main()
7 {
8 // implicitly create a JSON null value
9 json j1;
10
11 // explicitly create a JSON null value
12 json j2(nullptr);
13
14 // serialize the JSON null value
15 std::cout << j1 << '\n' << j2 << '\n';
16 }