這裏發送JSON字符串是我的代碼:在AlamoFire
let str :String = "{"emailId":"\(id)","password":"\(pass)"}"
Alamofire.request(.GET, "http://constructionapp.dev04.vijaywebsolutions.com/proroffingservice.asmx?op=wsUserLogin", parameters: ["json":str])
.responseJSON{response in
self.arrresult = JSON(response.result.value!)}
'讓PARAM = [ 「uid」:uid,「password」:password] Alamofire.request(.POST,「http://constructionapp.dev04.vijaywebsolutions.com/proroffingservice.asmx?op=wsUserLogin」,參數:param,encoding:.JSON ,標題:無) .responseJSON {(response)in self.arrresult = JSON(response.result.value!) }' – childrenOurFuture