This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use serde_json::Value; | |
use std::{any, fs, path::Path}; | |
fn parse_json_file(file: &str) -> Value { | |
let contents: String = fs::read_to_string(file).expect("Unable to read file"); | |
return serde_json::from_str(&contents).unwrap(); | |
} | |
fn make_dirs(json: &Value, dir: &Path) { | |
if let Some(i) = json.as_object() { |