Skip to content

Configurable deserializer #10

Description

@pbutler

Is possible to configure the deserializer? For instance specify a type data decoding strategy.

I added
decoder.dateDecodingStrategy = .iso8601
around here:

return try JSONDecoder().decode(T.self, from: data)

but that's a hack. I was wondering if it's possible to do so in a better way.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions