deser_json/
lib.rs

1//! Parse and serialize JSON compatible with deser.
2//!
3//! This library is very bare bones at this point and not at all optimized.  It is
4//! based on microserde which in turn is based on miniserde to achieve the most
5//! minimal implementation of a serializer and serializer.
6//!
7//! ```rust
8//! let vec: Vec<u64> = deser_json::from_str("[1, 2, 3, 4]").unwrap();
9//! let json = deser_json::to_string(&vec).unwrap();
10//! ```
11//!
12//! By default this crate has no dependency crates other than `deser`, but optionally
13//! the `speedups` feature can be enabled in which case this also uses `ryu` and `itoa`
14//! crates are used for number formatting.
15mod de;
16mod ser;
17
18pub use self::de::{from_str, Deserializer};
19pub use self::ser::{to_string, Serializer};