{"id":22940817,"url":"https://github.com/scottgriv/swift-json_codables","last_synced_at":"2026-05-18T00:06:35.442Z","repository":{"id":163780236,"uuid":"585381536","full_name":"scottgriv/swift-json_codables","owner":"scottgriv","description":"Demo of decoding JSON using Swift's Codable API.","archived":false,"fork":false,"pushed_at":"2025-01-09T04:28:06.000Z","size":378,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-30T17:28:23.351Z","etag":null,"topics":["json","swift","swift-codable","swift-codable-files"],"latest_commit_sha":null,"homepage":"","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/scottgriv.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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}},"created_at":"2023-01-05T02:51:17.000Z","updated_at":"2025-01-09T04:28:09.000Z","dependencies_parsed_at":"2023-12-01T23:27:45.149Z","dependency_job_id":"b5749726-d836-4354-a4d2-8dc440369eb8","html_url":"https://github.com/scottgriv/swift-json_codables","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/scottgriv/swift-json_codables","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scottgriv%2Fswift-json_codables","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scottgriv%2Fswift-json_codables/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scottgriv%2Fswift-json_codables/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scottgriv%2Fswift-json_codables/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/scottgriv","download_url":"https://codeload.github.com/scottgriv/swift-json_codables/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scottgriv%2Fswift-json_codables/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268297416,"owners_count":24228125,"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","status":"online","status_checked_at":"2025-08-01T02:00:08.611Z","response_time":67,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["json","swift","swift-codable","swift-codable-files"],"created_at":"2024-12-14T13:32:28.057Z","updated_at":"2026-05-18T00:06:28.400Z","avatar_url":"https://github.com/scottgriv.png","language":"Swift","funding_links":["https://www.buymeacoffee.com/scottgriv"],"categories":[],"sub_categories":[],"readme":"\u003c!-- Begin README --\u003e\r\n\r\n\u003cdiv align=\"center\"\u003e\r\n    \u003ca href=\"https://github.com/scottgriv/swift-json_codables\" target=\"_blank\"\u003e\r\n        \u003cimg src=\"./docs/images/icon.png\" width=\"150\" height=\"150\"/\u003e\r\n    \u003c/a\u003e\r\n\u003c/div\u003e\r\n\u003cbr\u003e\r\n\u003cp align=\"center\"\u003e\r\n    \u003ca href=\"https://swiftversion.net/\"\u003e\u003cimg src=\"https://img.shields.io/badge/Swift-5.7-F05138?style=for-the-badge\u0026logo=swift\" alt=\"Swift Badge\" /\u003e\u003c/a\u003e\r\n    \u003cbr\u003e\r\n    \u003ca href=\"https://github.com/scottgriv\"\u003e\u003cimg src=\"https://img.shields.io/badge/github-follow_me-181717?style=for-the-badge\u0026logo=github\u0026color=181717\" alt=\"GitHub Badge\" /\u003e\u003c/a\u003e\r\n    \u003ca href=\"mailto:scott.grivner@gmail.com\"\u003e\u003cimg src=\"https://img.shields.io/badge/gmail-contact_me-EA4335?style=for-the-badge\u0026logo=gmail\" alt=\"Email Badge\" /\u003e\u003c/a\u003e\r\n    \u003ca href=\"https://www.buymeacoffee.com/scottgriv\"\u003e\u003cimg src=\"https://img.shields.io/badge/buy_me_a_coffee-support_me-FFDD00?style=for-the-badge\u0026logo=buymeacoffee\u0026color=FFDD00\" alt=\"BuyMeACoffee Badge\" /\u003e\u003c/a\u003e\r\n    \u003cbr\u003e\r\n    \u003ca href=\"https://prgportfolio.com\" target=\"_blank\"\u003e\u003cimg src=\"https://img.shields.io/badge/PRG-Bronze Project-CD7F32?style=for-the-badge\u0026logo=data:image/svg%2bxml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBzdGFuZGFsb25lPSJubyI/Pgo8IURPQ1RZUEUgc3ZnIFBVQkxJQyAiLS8vVzNDLy9EVEQgU1ZHIDIwMDEwOTA0Ly9FTiIKICJodHRwOi8vd3d3LnczLm9yZy9UUi8yMDAxL1JFQy1TVkctMjAwMTA5MDQvRFREL3N2ZzEwLmR0ZCI+CjxzdmcgdmVyc2lvbj0iMS4wIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciCiB3aWR0aD0iMjYuMDAwMDAwcHQiIGhlaWdodD0iMzQuMDAwMDAwcHQiIHZpZXdCb3g9IjAgMCAyNi4wMDAwMDAgMzQuMDAwMDAwIgogcHJlc2VydmVBc3BlY3RSYXRpbz0ieE1pZFlNaWQgbWVldCI+Cgo8ZyB0cmFuc2Zvcm09InRyYW5zbGF0ZSgwLjAwMDAwMCwzNC4wMDAwMDApIHNjYWxlKDAuMTAwMDAwLC0wLjEwMDAwMCkiCmZpbGw9IiNDRDdGMzIiIHN0cm9rZT0ibm9uZSI+CjxwYXRoIGQ9Ik0xMiAzMjggYy04IC04IC0xMiAtNTEgLTEyIC0xMzUgMCAtMTA5IDIgLTEyNSAxOSAtMTQwIDQyIC0zOCA0OAotNDIgNTkgLTMxIDcgNyAxNyA2IDMxIC0xIDEzIC03IDIxIC04IDIxIC0yIDAgNiAyOCAxMSA2MyAxMyBsNjIgMyAwIDE1MCAwCjE1MCAtMTE1IDMgYy04MSAyIC0xMTkgLTEgLTEyOCAtMTB6IG0xMDIgLTc0IGMtNiAtMzMgLTUgLTM2IDE3IC0zMiAxOCAyIDIzCjggMjEgMjUgLTMgMjQgMTUgNDAgMzAgMjUgMTQgLTE0IC0xNyAtNTkgLTQ4IC02NiAtMjAgLTUgLTIzIC0xMSAtMTggLTMyIDYKLTIxIDMgLTI1IC0xMSAtMjIgLTE2IDIgLTE4IDEzIC0xOCA2NiAxIDc3IDAgNzIgMTggNzIgMTMgMCAxNSAtNyA5IC0zNnoKbTExNiAtMTY5IGMwIC0yMyAtMyAtMjUgLTQ5IC0yNSAtNDAgMCAtNTAgMyAtNTQgMjAgLTMgMTQgLTE0IDIwIC0zMiAyMCAtMTgKMCAtMjkgLTYgLTMyIC0yMCAtNyAtMjUgLTIzIC0yNiAtMjMgLTIgMCAyOSA4IDMyIDEwMiAzMiA4NyAwIDg4IDAgODggLTI1eiIvPgo8L2c+Cjwvc3ZnPgo=\" alt=\"Bronze\" /\u003e\u003c/a\u003e\r\n\u003c/p\u003e\r\n\r\n---------------\r\n\r\n\u003ch1 align=\"center\"\u003eSwift JSON Codables\u003c/h1\u003e\r\n\r\nA collection of Swift Codable examples.\r\n\r\nCodable 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.\r\n\r\n---------------\r\n\r\n## Table of Contents\r\n\r\n- [Getting Started](#getting-started)\r\n- [Resources](#resources)\r\n- [License](#license)\r\n- [Credits](#credits)\r\n\r\n## Getting Started\r\n\r\nIntroduced 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`.\r\n- View the codable examples in the [codable](codable.swift) file.\r\n- For this example, we'll be using language codes and names from the [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) standard.\r\n\r\n## Resources\r\n\r\n- [Swift](https://swift.org/)\r\n- [Swift Codable](https://developer.apple.com/documentation/swift/codable)\r\n- [Swift Codable Tutorial](https://www.raywenderlich.com/3418439-encoding-and-decoding-in-swift-with-codable)\r\n\r\n## License\r\n\r\nThis project is released under the terms of **The Unlicense**, which allows you to use, modify, and distribute the code as you see fit. \r\n- [The Unlicense](https://choosealicense.com/licenses/unlicense/) removes traditional copyright restrictions, giving you the freedom to use the code in any way you choose.\r\n- For more details, see the [LICENSE](LICENSE) file in this repository.\r\n\r\n## Credits\r\n\r\n**Author:** [Scott Grivner](https://github.com/scottgriv) \u003cbr\u003e\r\n**Email:** [scott.grivner@gmail.com](mailto:scott.grivner@gmail.com) \u003cbr\u003e\r\n**Website:** [scottgrivner.dev](https://www.scottgrivner.dev) \u003cbr\u003e\r\n**Reference:** [Main Branch](https://github.com/scottgriv/swift-json_codables) \u003cbr\u003e\r\n\r\n---------------\r\n\r\n\u003cdiv align=\"center\"\u003e\r\n    \u003ca href=\"https://scottgrivner.dev\" target=\"_blank\"\u003e\r\n        \u003cimg src=\"./docs/images/footer.png\" width=\"100\" height=\"100\"/\u003e\r\n    \u003c/a\u003e\r\n\u003c/div\u003e\r\n\r\n\u003c!-- End README --\u003e","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscottgriv%2Fswift-json_codables","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fscottgriv%2Fswift-json_codables","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscottgriv%2Fswift-json_codables/lists"}