writer doesn't need to be in its own goroutine
no need to write json - return as text data