         json["state"].object = state.object
         json["version"].int = FileFormatVersion
         
-        return try json.rawData()
+        return try json.rawData(options: .prettyPrinted)
     }
     
     override func read(from data: Data, ofType typeName: String) throws {


class TaskManDocument: NSDocument {
    
    var taskManState = TaskManState(range: DateRange(startDate: Date(),endDate: Date().addingTimeInterval(8 * 60 * 60)))
    
    override func defaultDraftName() -> String {
        let now = Date()

        self.addWindowController(windowController)
    }

    override func data(ofType typeName: String) throws -> Data {
        var json = JSON([:])
        let state = taskManState.serialize()
