(cherry picked from commit 1aad99a71813660b83628cacfed393d0b3a123cc)
@@ -94,6 +94,7 @@ public class EventWriter {
wrapper.setEvent(event.getDatum());
writer.write(wrapper, encoder);
if (this.jsonOutput) {
+ encoder.flush();
out.writeBytes("\n");
}