Crate deser_json

Crate deser_json 

Source
Expand description

Parse and serialize JSON compatible with deser.

This library is very bare bones at this point and not at all optimized. It is based on microserde which in turn is based on miniserde to achieve the most minimal implementation of a serializer and serializer.

let vec: Vec<u64> = deser_json::from_str("[1, 2, 3, 4]").unwrap();
let json = deser_json::to_string(&vec).unwrap();

By default this crate has no dependency crates other than deser, but optionally the speedups feature can be enabled in which case this also uses ryu and itoa crates are used for number formatting.

Structs§

Deserializer
Deserializes a serializable from JSON.
Serializer
Serializes a serializable to JSON.

Functions§

from_str
Deserializes JSON from the given string.
to_string
Serializes a value to JSON.