Notice
Recent Posts
Recent Comments
Link
반응형
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | ||||
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 | 30 | 31 |
Tags
- M1
- aws database
- swiftui keyboard
- Apple Silicon
- swiftm
- Alamofire.AFError.session Task Failed(error: Error Domain=NSURLErrorDomain Code=-1022
- ssh-remote
- ubuntu-desktop
- swiftui keyboard dismiss
- well architected
- api service key error
- Swift
- NSURLErrorDomain Code=-1022
- M3
- codingkey
- service key is not registered error
- M2
- SwiftUI
- AppTransportSecurity
- 가상머신
- m4
- Docker Engine
- Linux
- 성능효율성
- perfomance efficiency
- ubuntu
- 6pillar
- Alamofire
- sudo docker
- Arm
Archives
- Today
- Total
목록codingkey (1)
behan의 개인적인 기술 블로그
Swift) json 파싱 항목명을 다른 이름으로 사용 (feat. Codingkey)
swift에서(?) json 파싱을 하기 위해서는 항목명을 그대로 사용해야 한다. 다른 이름으로 사용하기 위해서는 Codingkey를 사용하면 된다. struct CandidateInfoResponse: Codable { //내가 사용할 이름 var getResponse: GetResponse var name: NAME private enum CodingKeys: String, CodingKey { case getResponse = "getPofelcddRegistSttusInfoInqire" // 실제 json 항목명 case name = "name" //내가 사용할 이름과 json 항목명이 같으면 똑같이 넣어줌 } } 참고 : https://www.youtube.com/watch?v=aMes-DVVJ..
iOS/Swift
2022. 1. 12. 17:32