pub fn json_error_position(input: &str) -> usize
Return 0 for valid JSON, otherwise a 1-based position for first parse error.