#[macro_use]
extern crate jconfig;
use jconfig::Config;
fn main() {
let raw = r#"{"port":12345,"name":"test"}"#;
let config = Config::from_str(raw).unwrap();
println!("{}", config.get::<Port>().unwrap());
println!("{}", config.get_raw("name").unwrap());
}
config_field!{
struct Port: u16,
key: "port"
}