AI Slop Code RIsk Monitor

serde-rs/json

Strongly typed JSON library for Rust

7.3 Moderate pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for serde-rs/json, a Rust project with 5,644 GitHub stars. SynthScan examined 24,185 lines of code across 78 source files, recording 189 pattern matches distributed across 2 syntactic categories. The legacy adjusted pattern signal is 7.3 (Moderate 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.

7.3
Adjusted Signal
7.3
Raw Pattern Score
100%
Time Factor
2026-10-11
Last Push
5.6K
Stars
Rust
Language
24.2K
Lines of Code
78
Files
189
Pattern Hits
2026-10-12
Scan Date
0.00
HC Hit Rate

Risk Review · v3

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

Cognitive Ownership Risk 27.4/100 · MEDIUM

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

Hallucinated Dependency & Supply Chain Risk 4.5/100 · LOW

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

Agent Over-Engineering Ratio 0.0/100 · LOW

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

PR Review Velocity Impact 32.3/100 · MEDIUM

Which changes need focused human review? 189 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 0HIGH 0MEDIUM 0LOW 189

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 189 distinct pattern matches across 2 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 Block172 hits · 155 pts
SeverityFileLineSnippetContext
LOWCargo.toml61# Make serde_json::Map use a representation which maintains insertion order.COMMENT
LOWCargo.toml81arbitrary_precision = []COMMENT
LOWsrc/number.rs161 /// Represents the number as f64 if possible. Returns None otherwise.COMMENT
LOWsrc/number.rs221 }COMMENT
LOWsrc/number.rs281COMMENT
LOWsrc/error.rs101 pub fn is_data(&self) -> bool {COMMENT
LOWsrc/error.rs121 /// use std::io::{self, ErrorKind, Read};COMMENT
LOWsrc/error.rs141 /// Err(error) => {COMMENT
LOWsrc/error.rs181 ///COMMENT
LOWsrc/error.rs201 /// }COMMENT
LOWsrc/lib.rs1//! # Serde JSONCOMMENT
LOWsrc/lib.rs21//! There are three common ways that you might find yourself needing to workCOMMENT
LOWsrc/lib.rs41//! representation. This data structure is [`serde_json::Value`][value].COMMENT
LOWsrc/lib.rs61//!COMMENT
LOWsrc/lib.rs81//! println!("Please call {} at the number {}", v["name"], v["phones"][0]);COMMENT
LOWsrc/lib.rs101//! containing a JSON string and its JSON representation is `"John Doe"`.COMMENT
LOWsrc/lib.rs121//! use serde::{Deserialize, Serialize};COMMENT
LOWsrc/lib.rs141//! }"#;COMMENT
LOWsrc/lib.rs161//! automatically interpret the input data as a `Person` and produce informativeCOMMENT
LOWsrc/lib.rs181//!COMMENT
LOWsrc/lib.rs201//! ```COMMENT
LOWsrc/lib.rs221//! "name": full_name,COMMENT
LOWsrc/lib.rs241//!COMMENT
LOWsrc/lib.rs261//!COMMENT
LOWsrc/lib.rs281//! without the rest of the Rust standard library. Disable the default "std"COMMENT
LOWsrc/raw.rs21///COMMENT
LOWsrc/raw.rs41/// #[derive(Deserialize)]COMMENT
LOWsrc/raw.rs61/// let input: Input = serde_json::from_str(input)?;COMMENT
LOWsrc/raw.rs81/// The typical usage of `RawValue` will be in the borrowed form:COMMENT
LOWsrc/raw.rs101///COMMENT
LOWsrc/raw.rs181 /// except that we avoid an allocation and memcpy if both of the followingCOMMENT
LOWsrc/raw.rs201 ///COMMENT
LOWsrc/raw.rs221 /// // SAFETY: `json` was produced by serde_json's own serializer, so it isCOMMENT
LOWsrc/raw.rs241 /// ```COMMENT
LOWsrc/raw.rs281/// Convert a `T` into a boxed `RawValue`.COMMENT
LOWsrc/raw.rs301/// b: u32,COMMENT
LOWsrc/raw.rs321/// This conversion can fail if `T`'s implementation of `Serialize` decides toCOMMENT
LOWsrc/ser.rs1681 /// correctly formatted but unspecified numerical value.COMMENT
LOWsrc/ser.rs1701 ///COMMENT
LOWsrc/ser.rs2181{COMMENT
LOWsrc/de.rs41impl<'de, R> Deserializer<R>COMMENT
LOWsrc/de.rs161 StreamDeserializer {COMMENT
LOWsrc/de.rs181 /// *This method is only available if serde_json is built with theCOMMENT
LOWsrc/de.rs201 /// carefully_drop_nested_arrays(value);COMMENT
LOWsrc/de.rs1561 /// whether the bytes represent a valid UTF-8 string.COMMENT
LOWsrc/de.rs1581 ///COMMENT
LOWsrc/de.rs1601 ///COMMENT
LOWsrc/de.rs1621 /// use serde_bytes::ByteBuf;COMMENT
LOWsrc/de.rs2341///COMMENT
LOWsrc/de.rs2401 /// let de = serde_json::Deserializer::from_slice(data);COMMENT
LOWsrc/de.rs2521///COMMENT
LOWsrc/de.rs2541/// # ExampleCOMMENT
LOWsrc/de.rs2561/// let file = File::open(path)?;COMMENT
LOWsrc/de.rs2581/// ```COMMENT
LOWsrc/de.rs2601/// fn main() {COMMENT
LOWsrc/de.rs2621/// type.COMMENT
LOWsrc/de.rs2641/// fingerprint: String,COMMENT
LOWsrc/de.rs2661/// structure expected by `T`, for example if `T` is a struct type but the inputCOMMENT
LOWsrc/de.rs2681/// #[derive(Deserialize, Debug)]COMMENT
LOWsrc/de.rs2701///COMMENT
112 more matches not shown…
Fake / Example Data17 hits · 22 pts
SeverityFileLineSnippetContext
LOWREADME.md30 "name": "John Doe",CODE
LOWREADME.md94 "name": "John Doe",CODE
LOWREADME.md120the output looks like `Please call "John Doe" at the number "+44 1234567"`. TheCODE
LOWREADME.md122string and its JSON representation is `"John Doe"`. Printing as a plain stringCODE
LOWREADME.md162 "name": "John Doe",CODE
LOWREADME.md222 "name": "John Doe",CODE
LOWREADME.md252let full_name = "John Doe";CODE
LOWsrc/lib.rs8//! "name": "John Doe",COMMENT
LOWsrc/lib.rs69//! "name": "John Doe",COMMENT
LOWsrc/lib.rs99//! above, the output looks like `Please call "John Doe" at the number "+44COMMENT
LOWsrc/lib.rs101//! containing a JSON string and its JSON representation is `"John Doe"`.COMMENT
LOWsrc/lib.rs135//! "name": "John Doe",COMMENT
LOWsrc/lib.rs188//! "name": "John Doe",COMMENT
LOWsrc/lib.rs216//! let full_name = "John Doe";COMMENT
LOWsrc/value/mod.rs14//! "name": "John Doe",COMMENT
LOWsrc/value/mod.rs42//! let full_name = "John Doe";COMMENT
LOWsrc/value/mod.rs68//! "name": "John Doe",COMMENT