adds support for notification handling (e.g. if JSON response is empty)