 import Foundation
 
 
-enum JSONValue {
+public enum JSONValue {
 
     
     case JNumber(NSNumber)

        }
    }
    
    init (_ data: NSData!){
        if let value = data{
            var error:NSError? = nil
            if let jsonObject : AnyObject = NSJSONSerialization.JSONObjectWithData(data, options: nil, error: &error) {

            return nil
        }
    }
    public var number: NSNumber? {
        switch self {
        case .JNumber(let value):
            return value
        default:
            return nil
        }
    }
    
    public var double: Double? {
        switch self {
        case .JNumber(let value):
            return value.doubleValue
