Add generateJsonclass as funct