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_decode_stage;
23mod json_top_level_kind;
24mod lenient_json_decoder;
25mod lenient_json_normalizer;
26
27pub use json_decode_error::JsonDecodeError;
28pub use json_decode_error_kind::JsonDecodeErrorKind;
29pub use json_decode_options::JsonDecodeOptions;
30pub use json_decode_stage::JsonDecodeStage;
31pub use json_top_level_kind::JsonTopLevelKind;
32pub use lenient_json_decoder::LenientJsonDecoder;
33pub use lenient_json_normalizer::LenientJsonNormalizer;