Fresh Beginning
  • Home
  • Speaking
  • Reading
  • Github
  • Alma Mater
  • Contact
Subscribe
Tagged

Decodable

A collection of 4 posts

JSON

Using Codable Protocol in iOS to Decode Complex JSON Objects

A while back, I wrote a blog post about using Codable to encode/decode JSON payload while sending to or receiving from the server. However, I often find myself in situations where having straightforward examples with a single complex JSON is easier to understand how I can use it for

  • Jayesh Kawli
Jayesh Kawli Dec 20, 2021 • 5 min read
Codable

Codable - Dealing with built-in and custom `keyDecodingStrategy`

Apple introduced a keyDecodingStrategy parameter as a part of Swift 4.1 release. Although it's been out for a while, it's a huge change. We have many instances where server and mobile apps differ the way in which they represent incoming data. In most cases apps rely on camelCase notations

  • Jayesh Kawli
Jayesh Kawli Nov 27, 2019 • 5 min read
Swift

Using Codable Protocol in Swift 4.1

Swift 4 Codable protocol to decode and encode json data and model objects. Explained with examples.

  • Jayesh Kawli
Jayesh Kawli Sep 29, 2019 • 10 min read
Swift 4.1

Swift 4.1 feature - keyEncoding/keyDecoding strategy

Can't believe it's been 3 and half years but I still didn't run a single Swift program over command line. However, that is no longer going to happen. The occasion is an unreleased Swift version 4.1 (As of 02/14/2018) and my desire to try out new cool

  • Jayesh Kawli
Jayesh Kawli Feb 15, 2018 • 6 min read
Fresh Beginning © 2022
Powered by Ghost