I try to use swiftyjson and I get an error:
A call may cause, but it is marked as "try", and the error is not processed.
I confirmed that my JSON source is good. I searched and can not find a solution to this problem
import Foundation class lenderDetails { func loadLender() { let lenders = "" let url = URL(string: lenders)! let session = URLSession.shared.dataTask(with: url) { (data, response, error) in guard let data = data else { print ("data was nil?") return } let json = JSON(data: data) print(json) } session.resume() } }
Thanks for the help!
user7748962
source share