Function crackAttackModeToJSON