You can use the File class and JSON module in Ruby to read the json file and get its last modified date. Here's an example:
main.rb316 chars15 linesIn this example, we first get the last modified time of the json file using File.mtime. We then read the contents of the file using File.read, and parse the json data using JSON.parse. Finally, we print the last modified time using puts.
gistlibby LogSnag