config: get initial support for a json config file