Reorder JSON meta

Use "logical" ordering for use with ordered_json.
This commit is contained in:
Florian Albrechtskirchinger 2022-05-09 19:43:09 +02:00
parent a76b2c5229
commit 46ec41871e
No known key found for this signature in database
GPG Key ID: 19618CE9B2D4BE6D
2 changed files with 4 additions and 4 deletions

View File

@ -247,9 +247,7 @@ class basic_json // NOLINT(cppcoreguidelines-special-member-functions,hicpp-spec
{
basic_json result;
result["copyright"] = "(C) 2013-2022 Niels Lohmann";
result["name"] = "JSON for Modern C++";
result["url"] = "https://github.com/nlohmann/json";
result["version"]["string"] =
detail::concat(std::to_string(NLOHMANN_JSON_VERSION_MAJOR), '.',
std::to_string(NLOHMANN_JSON_VERSION_MINOR), '.',
@ -257,6 +255,8 @@ class basic_json // NOLINT(cppcoreguidelines-special-member-functions,hicpp-spec
result["version"]["major"] = NLOHMANN_JSON_VERSION_MAJOR;
result["version"]["minor"] = NLOHMANN_JSON_VERSION_MINOR;
result["version"]["patch"] = NLOHMANN_JSON_VERSION_PATCH;
result["url"] = "https://github.com/nlohmann/json";
result["copyright"] = "(C) 2013-2022 Niels Lohmann";
#ifdef _WIN32
result["platform"] = "win32";

View File

@ -19258,9 +19258,7 @@ class basic_json // NOLINT(cppcoreguidelines-special-member-functions,hicpp-spec
{
basic_json result;
result["copyright"] = "(C) 2013-2022 Niels Lohmann";
result["name"] = "JSON for Modern C++";
result["url"] = "https://github.com/nlohmann/json";
result["version"]["string"] =
detail::concat(std::to_string(NLOHMANN_JSON_VERSION_MAJOR), '.',
std::to_string(NLOHMANN_JSON_VERSION_MINOR), '.',
@ -19268,6 +19266,8 @@ class basic_json // NOLINT(cppcoreguidelines-special-member-functions,hicpp-spec
result["version"]["major"] = NLOHMANN_JSON_VERSION_MAJOR;
result["version"]["minor"] = NLOHMANN_JSON_VERSION_MINOR;
result["version"]["patch"] = NLOHMANN_JSON_VERSION_PATCH;
result["url"] = "https://github.com/nlohmann/json";
result["copyright"] = "(C) 2013-2022 Niels Lohmann";
#ifdef _WIN32
result["platform"] = "win32";