added JSONWriter to clean up and compress input tweets