We could download the new json file to a temporary directory like /tmp for linux and then replace the file with the new one.
This way we can make sure it replaces the file only if the download was complete
We could use something like this for checking whether the file was updated, but I'm not sure about the reliability of this methord
We could download the new json file to a temporary directory like /tmp for linux and then replace the file with the new one. This way we can make sure it replaces the file only if the download was complete
We could use something like this for checking whether the file was updated, but I'm not sure about the reliability of this methord