Should fix the parse error going to event-stream.

This should fix the parse issue from the container going to `event-stream`

The issue is `event-stream` **only** accepts JSON and the stream is piping plain strings, just try to parse as JSON and if it fails, make it JSON.

I thought this was an issue with `event-stream` and it is not so I've closed my PR to them.

@keyvanfatehi @knownasilya