Expand description
This module implements the json encodings of the legacy ssb data format, both signing and json transport.
Serialization methods take a boolean to switch between compact json and the signing encoding.
Structs§
- Decode
Json Error - Error code and byte offset describing a deserialization failure
- Json
Deserializer - A structure that deserializes json encoded legacy message values.
- Json
Serializer - A structure for serializing data into the legacy json encoding.
Enums§
- Encode
Json Error - Everything that can go wrong during json serialization.
- Error
Code - Everything that can go wrong during deserialization.
Functions§
- from_
slice - Try to parse data from the input. Validates that there are no trailing non-whitespace bytes.
- from_
slice_ partial - Try to parse data from the input, returning the remaining input when done.
- to_
string - Serialize the given data structure as JSON into a
String. - to_vec
- Serialize the given data structure as JSON into a JSON byte vector.
- to_
writer - Serialize the given data structure as JSON into the IO stream.
- to_
writer_ indent - Serialize the given data structure as JSON into the IO stream.