Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add extension for JSONDecoder and JSONEncoder #93

Merged
merged 1 commit into from
Apr 26, 2022

Conversation

JK0369
Copy link
Contributor

@JK0369 JK0369 commented Apr 16, 2022

Add extension for JSONDecoder and JSONEncoder,

to use Then for JSONDecoder & JSONEncoder like below.

let decoder = JSONDecoder().then {
  $0.keyDecodingStrategy = .convertFromSnakeCase
}

@devxoul devxoul merged commit d41ef52 into devxoul:master Apr 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants