Included a new function that encodes the URL and the datetime in JSON

The script now changed to log each URL with its datetime component. I
created a new function that JSON encodes an array of tuples of
key/value pairings as each entry