xref: /third_party/json/docs/examples/nlohmann_json_version.cpp
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /third_party/json/docs/examples/
1c5f01b2fSopenharmony_ci#include <iostream>
2c5f01b2fSopenharmony_ci#include <nlohmann/json.hpp>
3c5f01b2fSopenharmony_ci
4c5f01b2fSopenharmony_ciusing json = nlohmann::json;
5c5f01b2fSopenharmony_ci
6c5f01b2fSopenharmony_ciint main()
7c5f01b2fSopenharmony_ci{
8c5f01b2fSopenharmony_ci    std::cout << "JSON for Modern C++ version "
9c5f01b2fSopenharmony_ci              << NLOHMANN_JSON_VERSION_MAJOR << "."
10c5f01b2fSopenharmony_ci              << NLOHMANN_JSON_VERSION_MINOR << "."
11c5f01b2fSopenharmony_ci              << NLOHMANN_JSON_VERSION_PATCH << std::endl;
12c5f01b2fSopenharmony_ci}
13

Indexes created Thu Nov 07 10:32:03 CST 2024