Dictionary
struct Dictionary<Key : Hashable, Value> : Collection, ExpressibleByDictionaryLiteral
-
Converts an instance of
Dictionary
whose values conform toJSONEncodable
toJSON
. The keys in the resultingJSON.dictionary
will be of typeString
. - returns: An instance ofJSON
where the enum case is.dictionary
.Declaration
Swift
public func toJSON() -> JSON
Return Value
An instance of
JSON
where the enum case is.dictionary
.