DRY'd up some type calculations
Generator: renamed _json to _description