Sign in
fuchsia
/
third_party
/
json
/
refs/tags/v3.11.2
/
.
/
docs
/
examples
/
operator_array__size_type_const.cpp
blob: d56fa0a43742e97ed7305f870fcea85245463406 [
file
] [
log
] [
blame
]
#include
<iostream>
#include
<nlohmann/json.hpp>
using
json
=
nlohmann
::
json
;
int
main
()
{
// create JSON array
const
json array
=
{
"first"
,
"2nd"
,
"third"
,
"fourth"
};
// output element at index 2 (third element)
std
::
cout
<<
array
.
at
(
2
)
<<
'\n'
;
}