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