jsona 0.6.0

A JSONA parser, analyzer and formatter library
Documentation
1
2
3
4
5
6
7
8
9
use jsona::formatter::{format, Options};
fn main() {
    let jsona_file = std::env::args().nth(1).expect("Usage: format <jsona-file>");
    let jsona_file_path = std::path::Path::new(&jsona_file);
    let jsona_content = std::fs::read_to_string(jsona_file_path).unwrap();

    let result = format(&jsona_content, Options::default());
    println!("{}", result);
}