smartcodable
CommunityRobust Swift JSON parsing with defaults.
Software Engineering#swift#codable#default-values#type-conversion#json-parsing#missing-keys#SmartCodable
AuthorMemoryReload
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill enables Swift developers to decode JSON data reliably by leveraging SmartCodable, handling missing fields, default values, key mappings, and evolving data structures.
Core Features & Use Cases
- Robust decoding with safe defaults, missing keys handling, and type mismatch resilience.
- Flexible mapping and value transformation through mappingForKey and mappingForValue to support nested structures and custom types.
- Multi-format input support: dictionaries, JSON strings, and Data, with path-based designated data.
Quick Start
Use SmartCodable to deserialize JSON into Swift models with safe defaults. Example: let user = User.deserialize(from: ["name": "Alice", "age": 30])
Dependency Matrix
Required Modules
None requiredComponents
references
💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: smartcodable Download link: https://github.com/MemoryReload/mySkillConfigs/archive/main.zip#smartcodable Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.