ssb-json-msg-data 0.1.2

JSON de/serialization matching v8 (nodejs) behavior
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//! This module implements the json encodings of the legacy ssb data format, both
//! [signing](https://spec.scuttlebutt.nz/datamodel.html#signing-encoding) and
//! [json transport](https://spec.scuttlebutt.nz/datamodel.html#json-transport-encoding).
//!
//! Serialization methods take a boolean to switch between compact json
//! and the signing encoding.

mod de;
mod ser;

pub use self::de::{from_slice, from_slice_partial, DecodeJsonError, ErrorCode, JsonDeserializer};
pub use self::ser::{
    to_string, to_vec, to_writer, to_writer_indent, EncodeJsonError, JsonSerializer,
};