You can use the FileManager class to get the attributes of the file and then extract its modification date as follows:
main.swift305 chars10 linesThis code will print the last modification date of the JSON file. Make sure to replace path/to/your/file.json with the actual path to your JSON file.
gistlibby LogSnag