Sign in
fuchsia
/
third_party
/
json
/
a43347e1f994dd5a50f4b91f2409e2307c05ea11
/
.
/
doc
/
examples
/
operatorarray__key_type_const.cpp
blob: 2320e439e5603a9a70a75b7ad01620474cea2315 [
file
] [
log
] [
blame
]
#include
<iostream>
#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'
;
}