Sequence
protocol Sequence
-
Returns an JSON array representation of the objects contained in this set.
Declaration
Swift
func makeDictionaries() -> [[String : Any?]]Return Value
An array of all the dictionary objects representing the maps.
-
Serializes this set into a JSON data object.
Throws
Throws an error if this object failed to serialize.Declaration
Swift
func jsonData(options: JSONSerialization.WritingOptions = []) throws -> DataParameters
optionsThe writing options.
Return Value
The serialized object.
-
Serializes this set into a jsonString.
Throws
Throws an error if this object failed to serialize.Declaration
Swift
func jsonString(options: JSONSerialization.WritingOptions = [], encoding: String.Encoding = .utf8) throws -> String?Parameters
optionsThe writing options.
encodingThe string encoding that should be used.
Return Value
The serialized object.
View on GitHub
Sequence Extension Reference