vexy-json 1.5.11

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
16
17
18
use vexy_json::parse;

fn main() {
    let test_cases = vec![
        "1, 2, 3",
        "'a', 'b', 'c'",
        "true, false, null",
        "'hello', 123, true",
    ];

    for input in test_cases {
        println!("Input: {input}");
        match parse(input) {
            Ok(value) => println!("  Result: {value:?}\n"),
            Err(e) => println!("  Error: {e:?}\n"),
        }
    }
}