[][src]Macro assert_json_diff::assert_json_include

macro_rules! assert_json_include {
    (actual: $actual:expr, expected: $expected:expr) => { ... };
    (actual: $actual:expr, expected: $expected:expr,) => { ... };
    (expected: $expected:expr, actual: $actual:expr) => { ... };
    (expected: $expected:expr, actual: $actual:expr,) => { ... };
}

The macro used to compare two JSON values for an inclusive match.

It allows actual to contain additional data. If you want an exact match use assert_json_eq instead.

See crate documentation for examples.