ssb_json_msg_data/json/mod.rs
1//! This module implements the json encodings of the legacy ssb data format, both
2//! [signing](https://spec.scuttlebutt.nz/datamodel.html#signing-encoding) and
3//! [json transport](https://spec.scuttlebutt.nz/datamodel.html#json-transport-encoding).
4//!
5//! Serialization methods take a boolean to switch between compact json
6//! and the signing encoding.
7
8mod de;
9mod ser;
10
11pub use self::de::{from_slice, from_slice_partial, DecodeJsonError, ErrorCode, JsonDeserializer};
12pub use self::ser::{
13 to_string, to_vec, to_writer, to_writer_indent, EncodeJsonError, JsonSerializer,
14};