json/doc/examples/basic_json__nullptr_t.cpp

13 lines
185 B
C++
Raw Normal View History

2015-06-21 06:59:33 +08:00
#include <json.hpp>
using json = nlohmann::json;
2015-06-21 06:59:33 +08:00
int main()
{
// create a JSON null value
json j(nullptr);
// serialize the JSON null value
std::cout << j << '\n';
}