read server config from a json file