use thiserror::Error;
#[derive(Debug, Error)]
pub enum JsonError {
#[error("I/O error: {0}")]
Io(#[from] std::io::Error),
#[error("UTF-8 error: {0}")]
Utf8(#[from] std::str::Utf8Error),
#[error("JSON parse error: {0}")]
Serde(#[from] serde_json::Error),
#[error("Key not found: {0}")]
KeyNotFound(String),
#[error("Parser error")]
Parser,
}