pub fn assert_json_field_eq(json: &Value, field: &str, expected: &Value)Expand description
Assert that JSON contains a field with a specific value
ยงExamples
use reinhardt_testkit::assertions::assert_json_field_eq;
use serde_json::json;
let data = json!({"name": "John", "age": 30});
assert_json_field_eq(&data, "name", &json!("John"));