Added json response header to task event

Fixes #52