Skip to content

scottgriv/swift-json_codables

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation


Swift Badge
GitHub Badge Email Badge BuyMeACoffee Badge
Bronze


Swift JSON Codables

A collection of Swift Codable examples.

Codable is a protocol that allows you to encode and decode custom data types without writing any special code and without having to worry about losing your value types. It's a great way to save time and effort when working with JSON data.


Table of Contents

Getting Started

Introduced in Swift 4, the Codable API enables us to leverage the compiler in order to generate much of the code needed to encode and decode data to/from a serialized format, like JSON.

  • View the codable examples in the codable file.
  • For this example, we'll be using language codes and names from the ISO 639-1 standard.

Resources

License

This project is released under the terms of The Unlicense, which allows you to use, modify, and distribute the code as you see fit.

  • The Unlicense removes traditional copyright restrictions, giving you the freedom to use the code in any way you choose.
  • For more details, see the LICENSE file in this repository.

Credits

Author: Scott Grivner
Email: scott.grivner@gmail.com
Website: scottgrivner.dev
Reference: Main Branch


About

Demo of decoding JSON using Swift's Codable API.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages