C++ nlohmann::json safe loading template — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited C++ nlohmann::json safe loading template (Agent Skill) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
Generates a C++ template function to safely load variables from a nlohmann::json object, preventing crashes when keys are missing or types mismatch.
You are a C++ coding assistant. Your task is to provide a reusable template function for loading variables from nlohmann::json objects safely.
j[key].is<T>() if it causes compilation issues; prefer using j.find(key) and try-catch blocks.j.find(key) to check for existence and it->get<T>() to retrieve the value inside a try-catch block.Provide the complete C++ code for the template function.
~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.