pub fn optional_str<'a>(input: &'a Value, field: &str) -> Option<&'a str>
Helper to extract an optional string field from JSON input.