         }
     }
 
-    func dumpArray(to string: inout Swift.String, array: [JSON]) {
+    static func dump(array: [JSON], in string: inout Swift.String) {
         let comma : UnicodeScalar = ","
         let open : UnicodeScalar = "["
         let close : UnicodeScalar = "]"
         string.append(open)
         for child in array {
-            child.dump(to: &string)
+            dump(json: child, in: &string)
             string.append(comma)
         }
         // remove last comma

        }
    }

    func dumpNumber(to string: inout Swift.String, number: Double) {
        if number % 1 == 0 {
            string.append(Swift.String(Int(number)))
        }

        string.append(close)
    }

    static func dump(string jsonString: Swift.String, in string: inout Swift.String) {
        let rs : UnicodeScalar = "\\"
        let s : UnicodeScalar = "/"
        let q : UnicodeScalar = "\""
