Sign in
fuchsia
/
third_party
/
json
/
97309f0da98b99e9b7c04b54a1b1ae2504c06ce3
/
.
/
doc
/
examples
/
operatorarray__size_type_const.cpp
blob: 1bd88bc10983eacd7373aa84ea79ddcf6498d666 [
file
] [
log
] [
blame
]
#include
<iostream>
#include
<nlohmann/json.hpp>
using
json
=
nlohmann
::
json
;
int
main
()
{
// create JSON array
json array
=
{
"first"
,
"2nd"
,
"third"
,
"fourth"
};
// output element at index 2 (third element)
std
::
cout
<<
array
.
at
(
2
)
<<
'\n'
;
}