read config from json rather than ini file