This commit is contained in:
nlohmann
2026-10-03 05:43:12 +00:00
parent 2aaa1d24ef
commit a410b4f40f
741 changed files with 8115 additions and 2252 deletions
+17
View File
@@ -0,0 +1,17 @@
// swift-tools-version: 5.9
import PackageDescription
let package = Package(
name: "json_example",
dependencies: [
.package(url: "https://github.com/nlohmann/json", from: "3.12.0")
],
targets: [
.executableTarget(
name: "json_example",
dependencies: [
.product(name: "json", package: "json")
]
)
]
)
+10
View File
@@ -0,0 +1,10 @@
#include <json.hpp>
#include <iostream>
#include <iomanip>
using json = nlohmann::json;
int main()
{
std::cout << std::setw(4) << json::meta() << std::endl;
}