Avatar
norio_nomura 2/16/2018 4:50 AM
JSONDecoder.KeyDecodingStrategyに機能追加するPR書いたけど、evolutionプロセスが必要と言われてから放置してしまってるのを思い出した… https://github.com/apple/swift/pull/14039
Adds JSONDecoder.KeyDecodingStrategy.useSnakeCasedKeys. This will make following code works. import Foundation struct S: Codable { var myURLProperty: String } let encoder = JSONEncoder() enco...