A deprecated Swift library for JSON parsing, now superseded by Swift's Codable framework.
Gloss is a deprecated Swift library that simplifies JSON parsing by mapping JSON data to Swift model objects and vice versa. It was created to provide a clean, type-safe alternative to manual JSON handling before Swift's native Codable framework became prevalent. The library is now deprecated in favor of Codable, with updates focused solely on migration assistance.
Swift developers who built iOS or macOS applications between 2015 and 2021 and needed a reliable JSON parsing solution before Codable was widely adopted.
Developers chose Gloss for its elegant API, type safety, and reduced boilerplate compared to manual JSON parsing. It offered a straightforward way to handle JSON serialization and deserialization with minimal code.
[Deprecated] A shiny JSON parsing library in Swift :sparkles: Loved by many from 2015-2021
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Gloss leveraged Swift's type system to map JSON dictionaries to model objects with methods like 'init?(json:)', reducing runtime errors compared to manual parsing, as highlighted in its key features.
The library minimized boilerplate with simple initializers and serialization methods, making JSON handling straightforward and developer-friendly, aligning with its philosophy of elegance and clarity.
The README includes a detailed migration guide and helpers like '.from(decodableJSON:)' to transition existing models to Codable, easing the upgrade path for legacy codebases.
Widely used from 2015 to 2021, Gloss was a trusted community solution before Codable's dominance, indicating its stability and effectiveness in production environments.
The project is explicitly deprecated in favor of Codable, with updates only for migration, meaning no new features, bug fixes, or support for future Swift versions beyond basic compatibility.
Transitioning to Codable requires adding conformance to Decodable/Encodable and adapting call-sites, which can be time-consuming and error-prone for large codebases, as admitted in the migration guide.
For projects not already using Gloss, it adds unnecessary bloat and complexity, as Codable is built into Swift and requires no external libraries, making Gloss obsolete for modern development.