fn from(j: Error) -> Self {
        match j.err.code {
            ErrorCode::Io(err) => err,
            ErrorCode::EofWhileParsing => std::io::Error::new(std::io::ErrorKind::UnexpectedEof, j),
            _ => std::io::Error::new(std::io::ErrorKind::InvalidData, j),
        }
    }
Convert a `sonic_rs::Error` into an `std::io::Error`.

JSON syntax and data errors are turned into `InvalidData` I/O errors.
EOF errors are turned into `UnexpectedEof` I/O errors.
src/error.rs