json alert: fix action

It would give 'Pass' as an action when the rule is set to 'alert'.