mirror of
https://github.com/nlohmann/json.git
synced 2025-07-06 06:42:33 +03:00
interface cleanup
This commit is contained in:
@ -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';
|
||||
}
|
||||
|
Reference in New Issue
Block a user