Sign in
fuchsia
/
third_party
/
json
/
814fb31d64aaddd6e00a51dfc55508c3d30cb8f6
/
.
/
doc
/
examples
/
basic_json__object_t.cpp
blob: 39e2fcc0c0462f7a75ae69ea547e8e207eece58c [
file
] [
log
] [
blame
]
#include
<json.hpp>
using
json
=
nlohmann
::
json
;
int
main
()
{
// create an object_t value
json
::
object_t
value
=
{
{
"one"
,
1
},
{
"two"
,
2
}
};
// create a JSON object from the value
json j
(
value
);
// serialize the JSON object
std
::
cout
<<
j
<<
'\n'
;
}