JSONSerialization

Undocumented

  • Use the built-in, Objective-C based JSON parser to create JSON. - parameter data: An instance of Data. - returns: An instance of JSON. - throws: An error that may arise if the Data cannot be parsed into an object.

    Declaration

    Swift

    public static func createJSON(from data: Data) throws -> JSON

    Parameters

    data

    An instance of Data.

    Return Value

    An instance of JSON.