mirror of
https://github.com/hyperoslo/Cache.git
synced 2026-04-07 19:17:36 +00:00
20 lines
321 B
Swift
20 lines
321 B
Swift
import Foundation
|
|
|
|
public enum JSON {
|
|
case Array([AnyObject])
|
|
case Dictionary([String : AnyObject])
|
|
|
|
public var object: AnyObject {
|
|
var result: AnyObject
|
|
|
|
switch self {
|
|
case .Array(let object):
|
|
result = object
|
|
case .Dictionary(let object):
|
|
result = object
|
|
}
|
|
|
|
return result
|
|
}
|
|
}
|