Add From<serde_json::Value> for Json

This commit is contained in:
Nicolai Unrein 2020-05-11 17:55:54 +02:00
parent a8c7e571e4
commit aa83cab31b

View File

@ -37,6 +37,12 @@ impl<T: DeserializeOwned + Serialize + Send + Sync> ScalarType for Json<T> {
}
}
impl From<serde_json::Value> for Json<serde_json::Value> {
fn from(value: serde_json::Value) -> Self {
Self(value)
}
}
#[cfg(test)]
mod test {
use crate::*;