Writing json downloads into /tmp