我有这样的内容:https://pastebin.com/HVDC1G0F 我正在向Alamofire发出HTTP请求以检索此内容。 这是我的代码:
Alamofire.request("https://example.com/Student/Grade/GetFinalGrades")
.responseJSON(completionHandler: {
response in
print(response)
})
但是当我打印回复时,我收到了这个错误:
FAILURE: responseSerializationFailed(Alamofire.AFError.ResponseSerializationFailureReason.jsonSerializationFailed(Error Domain=NSCocoaErrorDomain Code=3840 "Invalid value around character 198."
UserInfo={NSDebugDescription=Invalid value around character 198.}))
这很奇怪,因为JSON文件看起来很干净。任何的想法?谢谢!