1
0
mirror of https://github.com/nlohmann/json.git synced 2025-07-06 06:42:33 +03:00

interface cleanup

This commit is contained in:
Niels
2016-08-31 17:07:35 +02:00
parent afba1d3fcb
commit 442058f8ed
10 changed files with 62 additions and 100 deletions

View File

@ -4,9 +4,12 @@ using json = nlohmann::json;
int main()
{
// create a JSON null value
json j(nullptr);
// implicitly create a JSON null value
json j1;
// explicitly create a JSON null value
json j2(nullptr);
// serialize the JSON null value
std::cout << j << '\n';
std::cout << j1 << '\n' << j2 << '\n';
}