Use cls if given in event for json