Skip to content

Instantly share code, notes, and snippets.

View amittkashyap's full-sized avatar
🎯
Focusing

Amit kashyap amittkashyap

🎯
Focusing
View GitHub Profile
@amittkashyap
amittkashyap / Persons.swift
Last active March 28, 2020 14:02
In this gist I will show you how to use custom keyDecodingStrategy/keyEncodingStrategy in new Codable/Decodable protocols in swift 4.1 with a simple example.
let json = """
[
{
"first-Name": "Taylor",
"last-Name": "swift",
"age": 28
},
{
"first-Name": "Tom",
"last-Name": "hanks",