json to csv by columns added
writer now flushes