file_wrapper for scrapy JSON output