Add newtype deserialization for Json(_) for parity with Cbor(_).

Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
Jason Volk
2025-12-30 04:51:24 +00:00
parent 0bbe96f761
commit 63bdeb79c9
2 changed files with 7 additions and 1 deletions

View File

@@ -52,7 +52,7 @@ pub(crate) struct Serializer<'a, W: Write> {
}
/// Newtype for JSON serialization.
#[derive(Debug, Serialize)]
#[derive(Debug, Deserialize, Serialize)]
pub struct Json<T>(pub T);
/// Newtype for CBOR serialization.