Add helpers for converting task to JSON, getting response info