Is there a way to overwrite the said file instead of appending it?
Example)
scrapy crawl myspider -o \"/path/to/json/my.json\" -t json scrapy cra
Since, the accepted answer gave me problems with unvalid json, this could work:
find "/path/to/json/" -name "my.json" -exec rm {} \; && scrapy crawl myspider -t json -o "/path/to/json/my.json"