added json for classes Type and Enum