diff --git a/sqlx-core/src/types/json.rs b/sqlx-core/src/types/json.rs index 3b94d8729b..6616ce1a7d 100644 --- a/sqlx-core/src/types/json.rs +++ b/sqlx-core/src/types/json.rs @@ -86,6 +86,13 @@ use crate::types::Type; #[serde(transparent)] pub struct Json(pub T); +impl Json { + /// Extract the inner value. + pub fn into_inner(self) -> T { + self.0 + } +} + impl From for Json { fn from(value: T) -> Self { Self(value)