pub fn json_dir_to_root<P>( dir_path: P, validation: bool) -> Result<RootObject, CoreError> where P: AsRef<Path>,