Node-red-contrib-persist on DietPi : EACCES: permission denied, open '/root/data/persistence.json'


Now another problem. I make file named persistence.json with folowing comand:
touch persistence.json
but this error is displayed
"/mnt/dietpi_userdata/node-red/persistence.json: Unexpected end of JSON input"