Coder Radio cover image

491: Voltron Based Development

Coder Radio

00:00

Embedded JSON Encoder

It is possible to do custom decoding and still keep all the other benefits. Decodable, which does exactly what it sounds like to codes a JSON object into your class or I'm sorry, struct. Encodable,. which does the opposite, encodes your data type intoJSON. It's so baller that it's really a type alias for two protocols, not one. So you don't have to follow its specific output that it requires. You can, there's room for fudging it. But if you don't want camel casing, you can tell it that it has built an enums for like other crazy casing, like snake casing. What's wrong with snake casing?

Transcript
Play full episode

The AI-powered Podcast Player

Save insights by tapping your headphones, chat with episodes, discover the best highlights - and more!
App store bannerPlay store banner
Get the app