json swift4 how to set the struct?
问题 I want to parse a json from a http resource (it's my router so http is mandatory). After I set the Info.plist App Security Transport that I do get a connection I get the data by 1st Attempted: let sphDataAddress = "http://speedport.ip/data/status.json" let url = URL(string: sphDataAddress)! let jsonData = try! Data(contentsOf: url) // ! is just for testing reason and will be in real app by guard let print("data \(jsonData)") // shows that the received Data are 5077bytes struct User { let