{"id":21063355,"url":"https://github.com/mohsinaliayub/encoding-decoding-swift","last_synced_at":"2025-12-29T14:23:28.461Z","repository":{"id":251550742,"uuid":"837738173","full_name":"mohsinaliayub/encoding-decoding-swift","owner":"mohsinaliayub","description":"Encoding \u0026 Decoding data in Swift with Codable protocol","archived":false,"fork":false,"pushed_at":"2024-08-04T00:22:58.000Z","size":20,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-20T20:47:16.838Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mohsinaliayub.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-08-03T21:54:19.000Z","updated_at":"2024-08-04T00:23:01.000Z","dependencies_parsed_at":"2024-08-03T22:47:00.412Z","dependency_job_id":"3023ed4a-5cc5-4426-bdcc-c31f6722e64d","html_url":"https://github.com/mohsinaliayub/encoding-decoding-swift","commit_stats":null,"previous_names":["mohsinaliayub/encoding-decoding-swift"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mohsinaliayub%2Fencoding-decoding-swift","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mohsinaliayub%2Fencoding-decoding-swift/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mohsinaliayub%2Fencoding-decoding-swift/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mohsinaliayub%2Fencoding-decoding-swift/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mohsinaliayub","download_url":"https://codeload.github.com/mohsinaliayub/encoding-decoding-swift/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243505894,"owners_count":20301619,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-19T17:44:49.647Z","updated_at":"2025-12-29T14:23:28.434Z","avatar_url":"https://github.com/mohsinaliayub.png","language":"Swift","readme":"# Encoding \u0026 Decoding in Swift with Codable\n**Codable** protocol is used to both encode and decode our models into/from various data formats, including JSON, XML and Property Lists).\n\nThe playground contains lots of common use-cases that require us to encode/decode our model objects.\n\nHere is a list of use-cases that are implemented for now:\n1. Encoding/Decoding Nested Types\n2. Encoding/Decoding Our Models to and from Snake Case in JSON\n3. Create Custom JSON Keys (with CodingKey protocol)\n4. Create Flat JSON Hierarchies\n5. Work with Deep JSON Hierarchies\n6. Encoding and Decoding Custom Date Representation\n7. Encoding and Decoding Subclasses\n8. Handling Arrays with Mixed Types\n9. Working with Unkeyed Container\n10. Working with Nested Unkeyed Container\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmohsinaliayub%2Fencoding-decoding-swift","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmohsinaliayub%2Fencoding-decoding-swift","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmohsinaliayub%2Fencoding-decoding-swift/lists"}