A shortcut for returning json as a http response