JSONSerialization
Undocumented
-
Use the built-in, Objective-C based JSON parser to create
JSON
. - parameter data: An instance ofData
. - returns: An instance ofJSON
. - throws: An error that may arise if theData
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
.