We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Facing json serilization exception for below code , any help is appreciated.
let headers: HTTPHeaders = [ "Authorization": "XXXXXX", "Accept": "application/json", "Content-Type": "application/json" ]
let body: Parameters = [ "test_id": 1, "stud_id": 1, "delayed_mins": 5 ] Alamofire.request("http://cloud.xxx/api/notify",method: .post,parameters: body,encoding: JSONEncoding(options: []),headers: headers).responseJSON { response in print(response) print(response.result) print(response.result.isSuccess) }
Any help is really appreciated.
The text was updated successfully, but these errors were encountered:
I tried passing string like below
let body: Parameters = [ "test_id": "abc", "stud_id": "def", "delayed_mins": "ghi" ]
It works , may be having issue passing integers in json . Any help would really appreciated.
Sorry, something went wrong.
changing from responseJSON to responseString worked, closing the issue.
very helpful, thanks a lot
No branches or pull requests
Facing json serilization exception for below code , any help is appreciated.
let headers: HTTPHeaders = [
"Authorization": "XXXXXX",
"Accept": "application/json",
"Content-Type": "application/json"
]
Any help is really appreciated.
The text was updated successfully, but these errors were encountered: