ferrite_json/lib.rs
1//! ferrite: json validator that tells you how to fix your mistakes
2//!
3//! ```ignore
4//! use ferrite::validate_json;
5//!
6//! let json = r#"{"name": "Alice", "age": 30}"#;
7//! match validate_json(json, "test.json".to_string(), 2) {
8//! Ok(_) => println!("Valid JSON!"),
9//! Err(e) => eprintln!("Error: {}", e),
10//! }
11//! ```
12
13pub mod validator;
14
15pub use validator::{validate_json, JsonError};