JSONEncodable
public protocol JSONEncodable
Type can be converted to JSON.
-
Encodes the reciever into JSON.
Declaration
Swift
func toJSON() -> JSON.Value
SwiftFoundation Docs (100% documented)
public protocol JSONEncodable
Type can be converted to JSON.
Encodes the reciever into JSON.
Swift
func toJSON() -> JSON.Value