libjsonutils/
lib.rs

1//! # JSON utilities for Rust.
2//!
3//! A collection of utilities for working with JSON in Rust.
4//! Written for my own convenience, but feel free to use it.
5//!
6//! ## Features
7//! - Read and write JSON files.
8//! - Print JSON to the console.
9//! - Error handling.
10
11pub mod error;
12pub mod file;
13mod inner;
14pub mod json;
15pub mod print;
16mod test;
17
18/// Re-export `serde_json`.
19pub use serde_json;
20
21pub mod prelude {
22    //! A prelude for the `json_utils` crate.
23    //! This module contains the most commonly used items.
24    pub use crate::{
25        error::Error,
26        file::{read_json, write_json},
27        print::print_json,
28    };
29    pub use serde_json::Value;
30}