{"id":23533482,"url":"https://github.com/wolfmcnally/wolfanycodable","last_synced_at":"2025-05-14T17:11:04.308Z","repository":{"id":56927632,"uuid":"148714229","full_name":"wolfmcnally/WolfAnyCodable","owner":"wolfmcnally","description":"Swift type-erased wrappers for Encodable, Decodable, and Codable values.","archived":false,"fork":false,"pushed_at":"2019-06-10T02:53:12.000Z","size":25,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-14T17:10:03.835Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/wolfmcnally.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}},"created_at":"2018-09-14T00:33:37.000Z","updated_at":"2021-02-20T16:43:51.000Z","dependencies_parsed_at":"2022-08-21T06:20:23.120Z","dependency_job_id":null,"html_url":"https://github.com/wolfmcnally/WolfAnyCodable","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wolfmcnally%2FWolfAnyCodable","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wolfmcnally%2FWolfAnyCodable/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wolfmcnally%2FWolfAnyCodable/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wolfmcnally%2FWolfAnyCodable/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wolfmcnally","download_url":"https://codeload.github.com/wolfmcnally/WolfAnyCodable/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254190394,"owners_count":22029632,"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-12-25T23:15:17.258Z","updated_at":"2025-05-14T17:11:04.257Z","avatar_url":"https://github.com/wolfmcnally.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# WolfAnyCodable\n\nSwift type-erased wrappers for Encodable, Decodable, and Codable values.\n\nThis cocoapod exists to easily incorporate the functionality of [AnyCodable](https://github.com/Flight-School/AnyCodable).\n\nThis functionality is discussed in Chapter 3 of [Flight School Guide to Swift Codable](https://gumroad.com/l/codable).\n\n## AnyEncodable\n\n```swift\nimport AnyCodable\n\nlet dictionary: [String: AnyEncodable] = [\n    \"boolean\": true,\n    \"integer\": 1,\n    \"double\": 3.14159265358979323846,\n    \"string\": \"string\",\n    \"array\": [1, 2, 3],\n    \"nested\": [\n        \"a\": \"alpha\",\n        \"b\": \"bravo\",\n        \"c\": \"charlie\"\n    ]\n]\n\nlet encoder = JSONEncoder()\nlet json = try! encoder.encode(dictionary)\n```\n\n## AnyDecodable\n\n```swift\nlet json = \"\"\"\n     {\n         \"boolean\": true,\n         \"integer\": 1,\n         \"double\": 3.14159265358979323846,\n         \"string\": \"string\",\n         \"array\": [1, 2, 3],\n         \"nested\": {\n             \"a\": \"alpha\",\n             \"b\": \"bravo\",\n             \"c\": \"charlie\"\n         }\n     }\n\"\"\".data(using: .utf8)!\n\nlet decoder = JSONDecoder()\nlet dictionary = try! decoder.decode([String: AnyDecodable].self, from: json)\n```\n\n## AnyCodable\n\n`AnyCodable` can be used to wrap values for encoding and decoding.\n\n## License\n\nMIT\n\n## Original Author\n\nMattt ([@mattt](https://twitter.com/mattt))\n\n## Requirements\n\nSwift 4.2\n\n## Installation\n\nWolfAnyCodable is available through [CocoaPods](https://cocoapods.org). To install\nit, simply add the following line to your Podfile:\n\n```ruby\npod 'WolfAnyCodable'\n```\n\n## Author\n\nWolf McNally, wolf@wolfmcnally.com\n\n## License\n\nWolfAnyCodable is available under the MIT license. See the LICENSE file for more info.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwolfmcnally%2Fwolfanycodable","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwolfmcnally%2Fwolfanycodable","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwolfmcnally%2Fwolfanycodable/lists"}