Sign in
flutter
/
third_party
/
json
/
dfdbbc71bb7b884edf377735112fc107f173db3e
/
.
/
docs
/
examples
/
operator_literal_json_pointer.cpp
blob: bbdb974af19bb08ad307fafd96a6d4ae5ff65dd4 [
file
]
#include
<iostream>
#include
<iomanip>
#include
<nlohmann/json.hpp>
using
json
=
nlohmann
::
json
;
int
main
()
{
json j
=
R
"( {"
hello
": "
world
", "
answer
": 42} )"
_json
;
auto
val
=
j
[
"/hello"
_json_pointer
];
std
::
cout
<<
std
::
setw
(
2
)
<<
val
<<
'\n'
;
}