Changed type of written data back into slice

This way the rendering as JSON or YAML will be backwards compatible again. We still only return the first endpoint.