Registry / testing / assert-json-diff

assert-json-diff

JSON →
library2.0.2rscratesunverified

Easily compare two JSON values and get great output.

testing
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

use assert_json_diff::assert_json_eq;

Asserts two JSON values are equal with detailed diff output.

use assert_json_diff::assert_json_eq; use serde_json::json; fn main() { let expected = json!({"a": 1, "b": 2}); let actual = json!({"a": 1, "b": 3}); assert_json_eq!(expected, actual); }
Debug
Known footguns

No known footguns recorded.

Upgrade
Version history

Breaking-change detection hasn't run for this library yet.

Audit
Security & dependencies

CVE tracking and dependency tree are planned for a later release.

Agent activity
16 hits · last 30 days
gptbot
3
claudebot
3
mj12bot
1
ahrefsbot
1
Resources