Sign in
fuchsia
/
third_party
/
json
/
a43347e1f994dd5a50f4b91f2409e2307c05ea11
/
.
/
doc
/
examples
/
basic_json__copyassignment.cpp
blob: 4f1bc439470bdf21fc062d57566d695193f28671 [
file
] [
log
] [
blame
]
#include
<iostream>
#include
"json.hpp"
using
json
=
nlohmann
::
json
;
int
main
()
{
// create JSON values
json a
=
23
;
json b
=
42
;
// copy-assign a to b
b
=
a
;
// serialize the JSON arrays
std
::
cout
<<
a
<<
'\n'
;
std
::
cout
<<
b
<<
'\n'
;
}