EOD commit: json data written always to file and sent in a single stream

Signed-off-by: Marco Milanesio <milanesio.marco@gmail.com>