JSONDecoder

public extension JSONDecoder
  • Returns the JSONDecoder owned by the Client. Until the first request to the CDA is made, this decoder won’t have the necessary localization content required to properly deserialize resources returned in the multi-locale format.

    Declaration

    Swift

    static func withoutLocalizationContext() -> JSONDecoder
  • Updates the JSONDecoder provided by the client with the localization context necessary to deserialize resources returned in the multi-locale format with the locale information provided by the space.

    Declaration

    Swift

    func update(with localizationContext: LocalizationContext)