1
0
mirror of https://github.com/nlohmann/json synced 2024-12-02 08:20:11 +00:00
nlohmannjson/doc/examples/basic_json__nullptr_t.cpp
2016-01-30 20:23:14 +01:00

13 lines
185 B
C++

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