# libcoerced `libcoerced` provides reasonably advanced json/text matching and coercion for Rust. It's simple to use and uses `serde_json` under the hood. ## Example ### JSON Verification ```rust use libcoerced::json; let json = json::Json::Object(Box::new([ ("hello", Box::new( json::Json::StringLiteral("world") )) ])); let data = serde_json::json!({ "hello": "world" }); assert!(json::json_verify(Box::new(json), data)); ``` ### Text Verification ```rust use libcoerced::generic::Text; let text = "hello"; let op = Text::Equals("hello"); assert!(generic::text_verify(&op, text)); ```