diff --git a/src/cargobase/errors/errors.rs b/src/cargobase/errors/errors.rs
index 37e2396..b42c0e9 100644
--- a/src/cargobase/errors/errors.rs
+++ b/src/cargobase/errors/errors.rs
@@ -29,4 +29,7 @@ pub enum DatabaseError {
#[error("Column `{0}` is required")]
ColumnRequiredError(String),
+
+ #[error("")] // could expand to specify serialization/deserialization error
+ JSONError(#[from] serde_json::Error),
}
diff --git a/src/cargobase/query.rs b/src/cargobase/query.rs
index 765ead8..6f2177f 100644
--- a/src/cargobase/query.rs
+++ b/src/cargobase/query.rs
@@ -41,23 +41,25 @@ impl Query {
self,
key: &str,
value: &str,
- ) -> Result