Sign in
fuchsia
/
third_party
/
json
/
refs/tags/v2.1.0
/
.
/
doc
/
examples
/
basic_json__nullptr_t.cpp
blob: d0156d5377b8d50c481223479402442935ea2c31 [
file
] [
log
] [
blame
]
#include
<json.hpp>
using
json
=
nlohmann
::
json
;
int
main
()
{
// implicitly create a JSON null value
json j1
;
// explicitly create a JSON null value
json j2
(
nullptr
);
// serialize the JSON null value
std
::
cout
<<
j1
<<
'\n'
<<
j2
<<
'\n'
;
}