Using jsonfile to manage config.