fn byte_offset(src: &str, line: usize, column: usize) -> usize
A 1-based line/column pair as a byte offset. serde reports (0, 0) for a failure with no position (an early EOF), which lands at the start.
(0, 0)