Skip to main content

Posts

Showing posts with the label Parse JSON Data(GET Method)

app-ads.txt

 google.com, pub-2203413632152319, DIRECT, f08c47fec0942fa0

Parse JSON Data with GET Method Using JsonDecoder in iOS

Parse JSON Data(GET Method) in UITableViewCell Using JsonDecoder Swift 4 & Xcode 9 1) -- ViewController Class First Create a new Project (ParseDataGETMethod) after make a struct (GetJsonData) type data parameter import UIKit struct GetJsonData: Decodable {     let name: String     let capital: String     let alpha2Code: String     let alpha3Code: String     let region: String     let subregion: String      } class ViewController: UIViewController , UITableViewDelegate , UITableViewDataSource {     var arrData = [ GetJsonData ]()     @IBOutlet var tableView: UITableView !     override func viewDidLoad() {         super . viewDidLoad ()         getJSONData ()     }     func getJSONData(){         let url = URL (string: "...