MetaCodable and CodableKit
About MetaCodable
SwiftyLab/MetaCodable
Supercharge Swift's Codable implementations with macros meta-programming.
This project helps Swift developers streamline how their data structures convert to and from formats like JSON or property lists. It takes your Swift data models and, using special annotations, automatically generates the complex code needed to handle data serialization and deserialization. It's designed for Swift app developers who regularly work with external data sources and need efficient, less error-prone ways to map that data to their app's internal structures.
About CodableKit
WendellXY/CodableKit
A Swift macro package designed to simplify the use of Swift's Codable protocol by allowing easy integration of default values, reducing the amount of auxiliary code you need to write.
This package helps Swift developers reliably handle incoming and outgoing JSON data, even when it's poorly structured or changes frequently. It takes your Swift data models and automatically generates the necessary code to convert them to and from JSON, letting you define how to handle missing data or complex nesting. Mobile app developers, backend engineers, or anyone building applications that interact with external APIs will find this useful.
Related comparisons
Scores updated daily from GitHub, PyPI, and npm data. How scores work