Need to send valid encoded json in response to set_notification ajax