This commit is contained in:
nlohmann
2026-10-21 10:31:00 +00:00
parent be4d0a6f4b
commit 90f0c9d411
714 changed files with 22067 additions and 622 deletions
+10
View File
@@ -0,0 +1,10 @@
#include <iostream>
#include <nlohmann/json_view.hpp>
int main()
{
nlohmann::ordered_json_document doc = nlohmann::ordered_json_document::parse(R"({"z": 1, "a": 2})");
nlohmann::ordered_json_view v = doc.root();
std::cout << std::boolalpha << v.is_object() << ' ' << v.size() << '\n';
}