Skip to main content

qubit_json/
lib.rs

1/*******************************************************************************
2 *
3 *    Copyright (c) 2026.
4 *    Haixing Hu, Qubit Co. Ltd.
5 *
6 *    All rights reserved.
7 *
8 ******************************************************************************/
9//! Provides the public API for the `qubit-json` crate.
10//!
11//! The crate exposes a lenient JSON decoder and the related option and error
12//! types needed to normalize and deserialize JSON text from
13//! non-fully-trusted sources.
14//!
15//! Author: Haixing Hu
16
17#![deny(missing_docs)]
18
19mod json_decode_error;
20mod json_decode_error_kind;
21mod json_decode_options;
22mod json_top_level_kind;
23mod lenient_json_decoder;
24mod lenient_json_normalizer;
25
26pub use json_decode_error::JsonDecodeError;
27pub use json_decode_error_kind::JsonDecodeErrorKind;
28pub use json_decode_options::JsonDecodeOptions;
29pub use json_top_level_kind::JsonTopLevelKind;
30pub use lenient_json_decoder::LenientJsonDecoder;
31pub use lenient_json_normalizer::LenientJsonNormalizer;