         if let json = try? NSString(contentsOfFile: savePath(forName: name), encoding: String.Encoding.utf8.rawValue) {
             guard let jsonData = json.data(using: String.Encoding.utf8.rawValue, allowLossyConversion: false) else { return nil }
 
-            if let data = try? JSONSerialization.jsonObject(with: jsonData, options: []) as? [String: AnyObject] {
+            if let data = try? JSONSerialization.jsonObject(with: jsonData, options: []) as? [String: Any] {
                 guard let data = data else { return nil }
 
                 var creationTime = Date()

            return time.timeIntervalSince(startTime)
        }

        func dictionaryValue() -> [String : String] {
            var dict = attributes
            dict[Keys.Title] = title
            dict[Keys.Time] = EventLog.JSONTimeFormatter.string(from: time)

        return strings.joined(separator: "\n")
    }

    var dictionaryValue: [String: Any] {
        let eventList = events.map { event -> [String: String] in
            var dict = event.dictionaryValue()
            dict["offset"] = self.offsetFor(event: event)
            return dict
        }

        return [
            "name": name,
            "creationTime": EventLog.JSONTimeFormatter.string(from: creationTime),
            "exportTime": EventLog.JSONTimeFormatter.string(from: Date()),
            "events": eventList,
        ]
    }

