AIFRDCG2GLASIMF3WZYAQBHIGZZDGPMP2WBYH7HXIYORKAK2SUYAC
AT753JPOOWZCIYNKAG27LZSZZ72ZILWVENG42Y6U2S34JD3B6ZZQC
5POF332LJEBGWEJUGI34P33Q4BQP7CAQNV5ODQT3PWG7FI7VNLOQC
GUXZCEWWPBCHXO26JVWZ74CTSDFDDO775YR7FKY7UGVZCA7GCSYAC
IKPVWWLKQZW7O23ZUSFFRE7IUUDFZR6UOCN6MVPNPMSTDSN7X4VAC
4MG5JFXTKAE3SOVKGGNKEUTNCKOWEBHTGKVZHJWLWE3PTZTQKHPAC
CUADTSHQNPGMWHIJCWXKHNNIY4UJOYZ7XBZA5CJ2VVJJAMSNT4BAC
use crate::countries::Country;
/// Save FRED data to disk as json.
/// ```
/// save_data_json("LRUNTTTTSIQ156S");
/// ```
pub fn save_data_json(series_id: &str, path: &str) {
let data = match Fred::series_observations_json(series_id) {
Ok(data) => data,
Err(err) => {
println!("{}", err);
panic!();
},
};
let save_path = format!("./data/{}", path);