lexical-ui 0.1.2

A Rust port of Lexical's model and headless packages, at parity with the JS implementation.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//! JSON as JS reads and writes it: `JSON.parse`, `JSON.stringify` with JS's
//! property order and number formatting, and `undefined`. Lexical's
//! serialized documents must be byte-identical to what JS writes, which
//! `serde_json` doesn't promise (key order, `1e+21`, `-0`), and the crate has
//! no third-party dependencies (rust/DESIGN.md).

mod number;
mod parse;
mod stringify;
mod value;

pub use number::number_to_string;
pub use parse::{ParseError, parse};
pub use stringify::stringify;
pub(crate) use value::array_index;
pub use value::{Object, Value};