Sign in
fuchsia
/
third_party
/
json
/
a3063c24194df831cc95b6429a648ea3a6739fcf
/
.
/
doc
/
examples
/
basic_json__array_t.cpp
blob: 1bb6931b215ffb737185741941b28b754d44dac3 [
file
] [
log
] [
blame
]
#include
<json.hpp>
using
json
=
nlohmann
::
json
;
int
main
()
{
// create an array_t value
json
::
array_t
value
=
{
"one"
,
"two"
,
3
,
4.5
,
false
};
// create a JSON array from the value
json j
(
value
);
// serialize the JSON array
std
::
cout
<<
j
<<
'\n'
;
}