Tag: Codable
-
Codable when the keys don’t match
A common issue when working with JSON that you vacuum up from internet APIs will be that the key names in the JSON don’t match your property names. The JSON de facto standard of using snake_case in key names could be one cause, or perhaps you just take variable naming more seriously than the person…
-
JSON encode/decode
As usual, I’m spending way more time on the apps written from scratch in the 100Days series. The Habit tracking app I’m working on has been good practice, especially of the architecture of the simple list based app. My version has a couple of refinements I quite like. I’m using a checkmark in a rectangle…