             i += 1
             if i != obj.count {
                 output.append(comma)
-                
+
             }
             serializeNewline()
         }
         serializeSpaces(indentLevel)
         output.append(rightCurlyBracket)
     }
-    
+
     func serializeArray(arr: [JSON], indentLevel: Int = 0) throws {
         output.append(leftSquareBracket)
         serializeNewline()

        serializeSpaces(indentLevel)
        output.append(rightSquareBracket)
    }
    
    func serializeString(str: String) {
        output.append(quotationMark)
        var generator = str.unicodeScalars.generate()

    public func serialized(prettyPrint prettyPrint: Bool = false, lineEndings: JSONSerializer.LineEndings = .Unix) throws -> String {
        return try JSONSerializer(value: self, prettyPrint: prettyPrint, lineEndings: lineEndings).serialize()
    }

    /// Returns this enum's associated Array value if it is one, `nil` otherwise.
    public var array: [JSON]? {
        guard case .array(let a) = self else { return nil }
