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.

@keyvanfatehi @knownasilya