marksands / BetterCodable

Better Codable through Property Wrappers
http://marksands.github.io/2019/10/21/better-codable-through-property-wrappers.html
MIT License
1.73k stars 79 forks source link

SnakeCaseCodingKey And CamelCase handling? #13

Open umairsuraj opened 4 years ago

umairsuraj commented 4 years ago

let json = """ {"user_id": "abc", "name": "tattn"} """.data(using: .utf8)!

For Upper Camel Case:

let json = """ {"UserId": "abc", "Name": "tattn"} """.data(using: .utf8)!

NachoSoto commented 2 years ago

See also #51.