1
0
mirror of https://github.com/nlohmann/json.git synced 2025-04-19 13:02:16 +03:00
json/docs/examples/basic_json__nullptr_t.cpp
2015-06-21 00:59:33 +02:00

13 lines
182 B
C++

#include <json.hpp>
using namespace nlohmann;
int main()
{
// create a JSON null value
json j(nullptr);
// serialize the JSON null value
std::cout << j << '\n';
}