AI Slop Code Risk Monitor

nlohmann/json

SlopCodeMonitor badge for nlohmann/json Adjusted legacy signal; badge bands: 25 / 50 / 75 (different from dashboard bands).

JSON for Modern C++

2.9 Low pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for nlohmann/json, a C++ project with 50,827 GitHub stars. SynthScan examined 261,885 lines of code across 1172 source files, recording 837 pattern matches distributed across 10 syntactic categories. The legacy adjusted pattern signal is 2.9 (Low pattern signal); it is not an authorship estimate.

Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.

2.9
Adjusted Signal
2.9
Raw Pattern Score
100%
Time Factor
2026-10-31
Last Push
50.8K
Stars
C++
Language
261.9K
Lines of Code
1.2K
Files
837
Pattern Hits
2026-10-31
Scan Date
0.00
HC Hit Rate

Risk Review · Payload v1

Use each vector to guide manual verification of the underlying findings.

Payload schema: 1.0.0 · Engine: 2.0.0 · Scoring: heuristic-density-v1 · Scan date: 2026-10-31.

Cognitive Ownership Risk 12.4/100 · LOW

Can maintainers explain intent, assumptions, and trade-offs? 809 finding(s).

Hallucinated Dependency & Supply Chain Risk 0.5/100 · LOW

Are imports declared and package/API names verified? 17 finding(s).

Agent Over-Engineering Ratio 0.6/100 · LOW

Are wrappers, guards, and repeated structures necessary? 13 finding(s).

PR Review Velocity Impact 15.3/100 · LOW

Which changes need focused human review? 837 finding(s).

What These Metrics Mean

Adjusted Signal
Legacy pattern score normalized per 1,000 scanned lines and multiplied by the repository-level time factor. It is not an estimate of AI authorship.
Raw Pattern Score
Sum of severity- and context-weighted pattern findings before applying the time factor.
Time Factor
A coarse multiplier based on repository last-push metadata. It does not identify when individual code was written.
Pattern Hits
Count of configured pattern findings. Review each location and surrounding code before acting.
HC Hit Rate
High- and critical-severity findings per scanned file. Severity is a configured detector weight, not proof of a vulnerability or authorship.
Lines / Files
Scan coverage denominators used by the legacy normalized score.

Pattern-Signal History

This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.

Severity Breakdown

Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.

CRITICAL 1HIGH 2MEDIUM 7LOW 827

Directory Score Breakdown

This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.

Pattern Findings

The scanner identified 837 distinct pattern matches across 10 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.

Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.

Over-Commented Block781 hits · 665 pts
SeverityFileLineSnippetContext
LOWCMakeLists.txt1cmake_minimum_required(VERSION 3.5...4.0)COMMENT
LOWREADME.md681json j_result = j_original.patch(j_patch);COMMENT
LOWREADME.md721// "a": "z",COMMENT
LOWtools/amalgamate/amalgamate.py1#!/usr/bin/env python3COMMENT
LOWtools/astyle/requirements.txt1# astyle is deliberately pinned: newer versions reformat the code, and this versionCOMMENT
LOWcmake/clang_sanitizer_ignorelist.txt1# Sanitizer ignore list for ci_test_clang_sanitizer (-fsanitize-ignorelist).COMMENT
LOWinclude/nlohmann/ordered_map.hpp1// __ _____ _____ _____COMMENT
LOWinclude/nlohmann/ordered_map.hpp261 // [ a, b, c, d, e, f, g, h, i, j ]COMMENT
LOWinclude/nlohmann/json.hpp21#include <algorithm> // all_of, find, for_each, none_ofCOMMENT
LOWinclude/nlohmann/json.hpp41#include <vector> // vectorCOMMENT
LOWinclude/nlohmann/json.hpp61#include <nlohmann/detail/input/input_adapters.hpp>COMMENT
LOWinclude/nlohmann/json.hpp81#include <nlohmann/detail/output/output_adapters.hpp>COMMENT
LOWinclude/nlohmann/json.hpp321 // container types //COMMENT
LOWinclude/nlohmann/json.hpp421#endifCOMMENT
LOWinclude/nlohmann/json.hpp441COMMENT
LOWinclude/nlohmann/json.hpp921COMMENT
LOWinclude/nlohmann/json.hpp941 // array/object, which neither allocates nor recurses moreCOMMENT
LOWinclude/nlohmann/json.hpp2241 /// detail::has_stable_elements), erasing a member may move the membersCOMMENT
LOWinclude/nlohmann/json.hpp2261COMMENT
LOWinclude/nlohmann/json.hpp5541 JSON_IMPLEMENT_OPERATOR( <, false, false, operator<(lhs_type, rhs_type),COMMENT
LOWinclude/nlohmann/json.hpp5961 /// @}COMMENT
LOWinclude/nlohmann/json.hpp6121COMMENT
LOWinclude/nlohmann/json.hpp6161 // the deleted version is a function template after the class, becauseCOMMENT
LOWinclude/nlohmann/json.hpp7681 // ordered_json, also needs the common keys to be in the same orderCOMMENT
LOWinclude/nlohmann/json.hpp7741 return true;COMMENT
LOWinclude/nlohmann/json.hpp7901 // and every pair of elements is still diffed completely before theCOMMENT
LOWinclude/nlohmann/json.hpp8481COMMENT
LOWinclude/nlohmann/adl_serializer.hpp1// __ _____ _____ _____COMMENT
LOWinclude/nlohmann/json_literals.hpp1// __ _____ _____ _____COMMENT
LOWinclude/nlohmann/json_literals.hpp21// amalgamation inlines macro_scope.hpp only once), so only standard and publicCOMMENT
LOWinclude/nlohmann/byte_container_with_subtype.hpp1// __ _____ _____ _____COMMENT
LOWinclude/nlohmann/json_view.hpp21 * The source text must outlive a document that borrows it (lvalue byte *COMMENT
LOWinclude/nlohmann/json_view.hpp41#endifCOMMENT
LOWinclude/nlohmann/json_view.hpp61// IWYU pragma: no_include "nlohmann/detail/meta/type_traits.hpp"COMMENT
LOWinclude/nlohmann/json_view.hpp1221 }COMMENT
LOWinclude/nlohmann/json_fwd.hpp1// __ _____ _____ _____COMMENT
LOWinclude/nlohmann/detail/hash.hpp1// __ _____ _____ _____COMMENT
LOWinclude/nlohmann/detail/string_escape.hpp1// __ _____ _____ _____COMMENT
LOWinclude/nlohmann/detail/json_ref.hpp1// __ _____ _____ _____COMMENT
LOWinclude/nlohmann/detail/value_t.hpp1// __ _____ _____ _____COMMENT
LOWinclude/nlohmann/detail/string_concat.hpp1// __ _____ _____ _____COMMENT
LOWinclude/nlohmann/detail/string_utils.hpp1// __ _____ _____ _____COMMENT
LOWinclude/nlohmann/detail/macro_scope.hpp1// __ _____ _____ _____COMMENT
LOWinclude/nlohmann/detail/macro_scope.hpp21 #if defined(__clang__)COMMENT
LOWinclude/nlohmann/detail/macro_scope.hpp41 #elif (defined(__cplusplus) && __cplusplus > 202002L) || (defined(_MSVC_LANG) && _MSVC_LANG > 202002L)COMMENT
LOWinclude/nlohmann/detail/macro_scope.hpp61 #if __has_include(<version>)COMMENT
LOWinclude/nlohmann/detail/macro_scope.hpp81 #if defined(__MINGW32__) && defined(__GNUC__) && __GNUC__ == 8COMMENT
LOWinclude/nlohmann/detail/macro_scope.hpp101 #undef JSON_HAS_EXPERIMENTAL_FILESYSTEMCOMMENT
LOWinclude/nlohmann/detail/macro_scope.hpp121COMMENT
LOWinclude/nlohmann/detail/macro_scope.hpp141 #define JSON_HAS_RANGES 0COMMENT
LOWinclude/nlohmann/detail/macro_scope.hpp161COMMENT
LOWinclude/nlohmann/detail/macro_scope.hpp181COMMENT
LOWinclude/nlohmann/detail/macro_scope.hpp201#elseCOMMENT
LOWinclude/nlohmann/detail/macro_scope.hpp221// GCC targeting MinGW and with every other toolchain the library is tested on.COMMENT
LOWinclude/nlohmann/detail/macro_scope.hpp241// override exception macrosCOMMENT
LOWinclude/nlohmann/detail/macro_scope.hpp261// allow overriding assertCOMMENT
LOWinclude/nlohmann/detail/macro_scope.hpp441#define NLOHMANN_JSON_PASTE2(func, v1) func(v1)COMMENT
LOWinclude/nlohmann/detail/macro_scope.hpp461#define NLOHMANN_JSON_PASTE22(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19COMMENT
LOWinclude/nlohmann/detail/macro_scope.hpp481#define NLOHMANN_JSON_PASTE42(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19COMMENT
LOWinclude/nlohmann/detail/macro_scope.hpp561 NLOHMANN_JSON_DOUBLE_PASTE7, \COMMENT
721 more matches not shown…
Deep Nesting25 hits · 25 pts
SeverityFileLineSnippetContext
LOWtools/serve_header/serve_header.py166CODE
LOWtools/serve_header/serve_header.py201CODE
LOWtools/serve_header/serve_header.py229CODE
LOWtools/check_build_options/check_build_options.py101CODE
LOWtools/amalgamate/amalgamate.py148CODE
LOWtools/amalgamate/amalgamate.py211CODE
LOWtools/gdb_pretty_printer/nlohmann-json.py16CODE
LOWtests/benchmarks/json_view/compare.py209CODE
LOWtests/benchmarks/json_view/compare.py236CODE
LOWtests/thirdparty/imapdl/filterbr.py8CODE
LOWtests/thirdparty/imapdl/filterbr.py37CODE
LOWtests/thirdparty/imapdl/filterbr.py84CODE
LOWdocs/docset/generate_docset.py65CODE
LOWdocs/docset/generate_docset.py412CODE
LOWdocs/mkdocs/hooks/api_changes.py54CODE
LOWdocs/mkdocs/hooks/api_changes.py107CODE
LOWdocs/mkdocs/hooks/unreleased_versions.py45CODE
LOWdocs/mkdocs/scripts/check_structure.py20CODE
LOWdocs/mkdocs/scripts/check_structure.py219CODE
LOWdocs/mkdocs/scripts/check_structure.py249CODE
LOWdocs/mkdocs/scripts/check_structure.py278CODE
LOWdocs/mkdocs/scripts/check_version_history.py72CODE
LOWdocs/mkdocs/scripts/figures/exception_map.py53CODE
LOWdocs/mkdocs/scripts/slideshow/build.py171CODE
LOWdocs/mkdocs/scripts/slideshow/build.py345CODE
Decorative Section Separators6 hits · 18 pts
SeverityFileLineSnippetContext
MEDIUMtests/benchmarks/json_view/compare.py96# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/benchmarks/json_view/compare.py98# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/benchmarks/json_view/compare.py205# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/benchmarks/json_view/compare.py207# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/benchmarks/json_view/compare.py232# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/benchmarks/json_view/compare.py234# ---------------------------------------------------------------------------COMMENT
Fake / Example Data13 hits · 13 pts
SeverityFileLineSnippetContext
LOWtests/src/unit-udt.cpp436 optPerson.reset(new udt::person{{42}, {"John Doe"}, udt::country::russia}); // NOLINT(cppcoreguidelines-owniCODE
LOWtests/src/unit-udt.cpp445 auto person = udt::person{{42}, {"John Doe"}, udt::country::russia};CODE
LOWtests/src/unit-udt.cpp551 optPerson.reset(new udt::person{{42}, {"John Doe"}, udt::country::russia}); // NOLINT(cppcoreguidelines-owning-mCODE
LOWtests/src/unit-udt.cpp560 auto person = udt::person{{42}, {"John Doe"}, udt::country::russia};CODE
LOWtests/src/unit-conversions2.cpp792 std::optional<std::string> opt_get_to = "placeholder";CODE
LOW…mann_define_type_intrusive_only_serialize_explicit.cpp12 std::string name = "John Doe";CODE
LOW…s/examples/nlohmann_define_type_intrusive_explicit.cpp12 std::string name = "John Doe";CODE
LOW…ohmann_define_type_intrusive_with_default_explicit.cpp12 std::string name = "John Doe";CODE
LOW…nn_define_type_non_intrusive_with_default_explicit.cpp11 std::string name = "John Doe";CODE
LOW…hmann_define_type_non_intrusive_with_default_macro.cpp11 std::string name = "John Doe";CODE
LOW…docs/examples/nlohmann_define_type_intrusive_macro.cpp12 std::string name = "John Doe";CODE
LOW…lohmann_define_type_intrusive_only_serialize_macro.cpp12 std::string name = "John Doe";CODE
LOW…/nlohmann_define_type_intrusive_with_default_macro.cpp12 std::string name = "John Doe";CODE
Empty Error Handlers2 hits · 10 pts
SeverityFileLineSnippetContext
HIGHtests/benchmarks/json_view/compare.py217except OSError:CODE
HIGHdocs/mkdocs/hooks/copy_markdown_source.py47except (SnippetMissingError, OSError):CODE
Hallucination Indicators1 hit · 10 pts
SeverityFileLineSnippetContext
CRITICAL.github/workflows/comment_check_amalgamation.yml85 const opts = github.rest.issues.listForRepo.endpoint.merge({CODE
Excessive Try-Catch Wrapping3 hits · 3 pts
SeverityFileLineSnippetContext
LOWtools/serve_header/serve_header.py426 except Exception:CODE
LOWtools/gdb_pretty_printer/nlohmann-json.py32 except Exception:CODE
LOWdocs/docset/generate_docset.py375 except Exception as e: # noqa: BLE001CODE
Unused Imports3 hits · 3 pts
SeverityFileLineSnippetContext
LOWtools/amalgamate/amalgamate.py32CODE
LOWtools/amalgamate/amalgamate.py33CODE
LOWtools/amalgamate/amalgamate.py34CODE
Hyper-Verbose Identifiers2 hits · 2 pts
SeverityFileLineSnippetContext
LOWtools/serve_header/serve_header.py255class HeaderRequestHandler(SimpleHTTPRequestHandler):CODE
LOWtools/check_build_options/check_build_options.py63def cmake_pkgconfig_definitions(cmake):CODE
AI Slop Vocabulary1 hit · 2 pts
SeverityFileLineSnippetContext
MEDIUMdocs/mkdocs/scripts/mermaid/package-lock.json1402 "resolved": "https://registry.npmjs.org/robust-predicates/-/robust-predicates-3.0.3.tgz",CODE