JSONDeserializer

public class JSONDeserializer : Deserializer

Default JSON deserializer implementation.

Deserializes JSON formatted data using Foundation’s JSONSerialization class.

  • A shared JSONDeserializer instance.

    Declaration

    Swift

    public static let shared: JSONDeserializer
  • A unique name that identifies this deserializer.

    Declaration

    Swift

    public let name: String
  • Function that deserializes raw JSON data into a Foundation object.

    Declaration

    Swift

    public func deserialize(data: Data) throws -> Any

    Parameters

    data

    The raw JSON data to be deserialized.