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 -> Data

    Parameters

    options

    The 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

    options

    The writing options.

    encoding

    The string encoding that should be used.

    Return Value

    The serialized object.