 public class JSONDecoder {
     var value: AnyObject?
     
-    //convert the value to a string
+    //convert the value to a String
     public var string: String? {
         return value as? String
     }

            }
        }
    }
    //get the values out of a dictonary.
    public func dictonary<T>(inout collect: Dictionary<String,T>?) {
        if let dictonary = value as? Dictionary<String,JSONDecoder> {
            if collect == nil {

    public var error: NSError? {
        return value as? NSError
    }
    //get  the value if it is a dictonary
    public var dictonary: Dictionary<String,JSONDecoder>? {
        return value as? Dictionary<String,JSONDecoder>
    }
    //get  the value if it is an array
    public var array: Array<JSONDecoder>? {
        return value as? Array<JSONDecoder>
    }
    //pull the raw values out of an array
    public func array<T>(inout collect: Array<T>?) {
        if let array = value as? Array<JSONDecoder> {
            if collect == nil {
