export document json to /tmp/sunny