Sign in
fuchsia
/
third_party
/
json
/
9e51c9041eb4f1adde343e2998a3d77c807d67ed
/
.
/
doc
/
examples
/
basic_json__const_int.cpp
blob: 7e38544bf236a46fc519a70932ecd1dc142d496a [
file
] [
log
] [
blame
]
#include
<json.hpp>
using
json
=
nlohmann
::
json
;
int
main
()
{
// an anonymous enum
enum
{
t
=
17
};
// create a JSON number from the enum
json j
(
t
);
// serialize the JSON numbers
std
::
cout
<<
j
<<
'\n'
;
}