codegen_dejson now handling enum as string