• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 #include <iostream>
2 #include <iomanip>
3 #include <nlohmann/json.hpp>
4 
5 using json = nlohmann::json;
6 using namespace nlohmann::literals;
7 
main()8 int main()
9 {
10     json j = R"( {"hello": "world", "answer": 42} )"_json;
11     auto val = j["/hello"_json_pointer];
12 
13     std::cout << std::setw(2) << val << '\n';
14 }
15