use crate::{json, Builder, FileSource};
pub trait JsonExt: Sized {
fn add_json_file<T: Into<FileSource>>(self, file: T) -> Self;
}
impl JsonExt for Builder {
fn add_json_file<F: Into<FileSource>>(mut self, file: F) -> Self {
self.add(json::Provider::new(file.into()));
self
}
}