pub fn validate_json(text: &str) -> Result<Value, String>
Parse text as JSON, stripping markdown fences if present.
Returns the parsed JSON value, or an error string describing the parse failure.