fix some classes generation issues with special settings + allow to disable json settings with a global setting