diff options
author | Valentin Popov <info@valentineus.link> | 2019-01-27 02:56:51 +0300 |
---|---|---|
committer | Valentin Popov <info@valentineus.link> | 2019-01-27 02:56:51 +0300 |
commit | 28bfd3a7ba4e20601546dbc57a29f4e5b2e3ee0e (patch) | |
tree | 5fd328b72672f207ab2d5f2ba5c6e713dff5052f /src/main.rs | |
parent | a8873e848fc5424dfec329b9bc8cfdb8f6144ccc (diff) | |
download | bbb2json-28bfd3a7ba4e20601546dbc57a29f4e5b2e3ee0e.tar.xz bbb2json-28bfd3a7ba4e20601546dbc57a29f4e5b2e3ee0e.zip |
Sun, 27 Jan 2019 03:56:51 +0400
Signed-off-by: Valentin Popov <info@valentineus.link>
Diffstat (limited to 'src/main.rs')
-rw-r--r-- | src/main.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main.rs b/src/main.rs index 5b35f4a..6774ec7 100644 --- a/src/main.rs +++ b/src/main.rs @@ -5,6 +5,9 @@ use std::path::Path; extern crate clap; use clap::{load_yaml, App}; +extern crate rustc_serialize; +use rustc_serialize::json; + mod parser; use parser::*; @@ -18,6 +21,7 @@ fn main() { true => { let file: File = File::open(path).unwrap(); let data: ParserResult = parse(BufReader::new(file)); + println!("{}", json::as_pretty_json(&data)); } _ => panic!("Error File!"), }; |