Skip to main content

qubit_json/
lib.rs

1/*******************************************************************************
2 *
3 *    Copyright (c) 2026 Haixing Hu.
4 *
5 *    SPDX-License-Identifier: Apache-2.0
6 *
7 *    Licensed under the Apache License, Version 2.0.
8 *
9 ******************************************************************************/
10//! Provides the public API for the `qubit-json` crate.
11//!
12//! The crate exposes a lenient JSON decoder and the related option and error
13//! types needed to normalize and deserialize JSON text from
14//! non-fully-trusted sources.
15//!
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;