mirror of
https://github.com/yonaskolb/XcodeGen.git
synced 2026-03-18 20:02:25 +00:00
20 lines
418 B
Swift
20 lines
418 B
Swift
import Foundation
|
|
import JSONUtilities
|
|
|
|
public protocol JSONDictionaryEncodable {
|
|
func toJSONDictionary() -> JSONDictionary
|
|
}
|
|
|
|
public protocol JSONArrayEncodable {
|
|
func toJSONArray() -> JSONArray
|
|
}
|
|
|
|
public protocol JSONPrimitiveEncodable {
|
|
func toJSONValue() -> JSONRawType
|
|
}
|
|
|
|
public protocol JSONDynamicEncodable {
|
|
// returns JSONDictionary or JSONArray or JSONRawType
|
|
func toJSONValue() -> Any
|
|
}
|