Sign in
fuchsia
/
third_party
/
json
/
814fb31d64aaddd6e00a51dfc55508c3d30cb8f6
/
.
/
doc
/
examples
/
basic_json__number_integer_t.cpp
blob: 1078f360e3a44b7b950f8c1d70c7b09d35e31547 [
file
] [
log
] [
blame
]
#include
<json.hpp>
using
json
=
nlohmann
::
json
;
int
main
()
{
// create a JSON number from number_integer_t
json
::
number_integer_t
value
=
42
;
json j
(
value
);
// serialize the JSON numbers
std
::
cout
<<
j
<<
'\n'
;
}