Registry / testing / assert-json-diff

assert-json-diff

JSON →
library2.0.2rscratesunverified

Easily compare two JSON values and get great output.

# Cargo.toml [dependencies] assert-json-diff = "2.0.2"
INSTALL
IMPORT
SIG · ASSERT-JSON-DIFF
A
assert-json-diff
testingrustv2.0.2
harness data pending
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.

assert_json_eq
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 issues

No known issues recorded.

Upgrade
Version history
2.0.2latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
20 hits · last 30 days
node
16
OpenAI (training)
1
Resources
assert-json-diff — cargo add assert-json-diff · libregistry