vexy-json 1.5.13

A forgiving JSON parser that accepts non-standard JSON formats
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use vexy_json::{parse_with_options, ParserOptions};

fn main() {
    println!("Testing strict parsing of '//comment':");

    let strict_opts = ParserOptions {
        allow_comments: false,
        ..Default::default()
    };

    match parse_with_options("//comment", strict_opts) {
        Ok(val) => println!("  Unexpected success: {val:?}"),
        Err(e) => println!("  Expected error: {e:?}"),
    }
}