presto-cli/src/main/java/io/prestosql/cli/JsonPrinter.java/JsonPrinter/finish
class JsonPrinter:    @Override
    public void finish()
            throws IOException
    {
        writer.flush();
    }