Sign in
fuchsia
/
third_party
/
json
/
9e51c9041eb4f1adde343e2998a3d77c807d67ed
/
.
/
doc
/
examples
/
operatorarray__key_type_const.cpp
blob: 5ad97355e1349850d90f01ae7a4a069a7b1a10d8 [
file
] [
log
] [
blame
]
#include
<json.hpp>
using
json
=
nlohmann
::
json
;
int
main
()
{
// create a JSON object
const
json object
=
{
{
"one"
,
1
},
{
"two"
,
2
},
{
"three"
,
2.9
}
};
// output element with key "two"
std
::
cout
<<
object
[
"two"
]
<<
'\n'
;
}