load config from a json file