1c5f01b2fSopenharmony_ci//     __ _____ _____ _____
2c5f01b2fSopenharmony_ci//  __|  |   __|     |   | |  JSON for Modern C++ (supporting code)
3c5f01b2fSopenharmony_ci// |  |  |__   |  |  | | | |  version 3.11.2
4c5f01b2fSopenharmony_ci// |_____|_____|_____|_|___|  https://github.com/nlohmann/json
5c5f01b2fSopenharmony_ci//
6c5f01b2fSopenharmony_ci// SPDX-FileCopyrightText: 2013-2022 Niels Lohmann <https://nlohmann.me>
7c5f01b2fSopenharmony_ci// SPDX-License-Identifier: MIT
8c5f01b2fSopenharmony_ci
9c5f01b2fSopenharmony_ci#include <nlohmann/json.hpp>
10c5f01b2fSopenharmony_ci
11c5f01b2fSopenharmony_ciint main()
12c5f01b2fSopenharmony_ci{
13c5f01b2fSopenharmony_ci    nlohmann::ordered_json json = {"Test"};
14c5f01b2fSopenharmony_ci    json.dump();
15c5f01b2fSopenharmony_ci
16c5f01b2fSopenharmony_ci    // regression for #3013 (ordered_json::reset() compile error with nvcc)
17c5f01b2fSopenharmony_ci    nlohmann::ordered_json metadata;
18c5f01b2fSopenharmony_ci    metadata.erase("key");
19c5f01b2fSopenharmony_ci}
20