JSONDecoder
public struct JSONDecoder
Handles decoding Data into a Foundation object
-
Decodes
Datainto aJSONObject.Note
if
JSONSerializationreturns a top level array then we wrap it in a dictionary.Parameters:
- data:
Dataobject to be converted toJSONObject
Returns
JSONObjectDeclaration
Swift
public static func decode(_ data: Data) throws -> AnyParameters
dataDataobject to be converted toJSONObjectReturn Value
JSONObject
View on GitHub
Install in Dash
JSONDecoder Struct Reference