Swift-Error Domain=NSCocoaErrorDomain Code=3840 "JSON text did not start with array or object and...

添加返回数据解析对象的初始化即可

swift版

let manager =AppService()

manager.responseSerializer = AFHTTPResponseSerializer.init()

oc版

AFHTTPSessionManager *manager = [AFHTTPSessionManager manager];

sessionManager.responseSerializer = [AFHTTPResponseSerializer serializer];

你可能感兴趣的:(Swift-Error Domain=NSCocoaErrorDomain Code=3840 "JSON text did not start with array or object and...)