fn extract_string(payload: &Value, field: &str) -> Option<String>
Extract a string from a JSON payload field.