Alamofire.request(.GET, \"url\").authenticate(user: \"\", password: \"\").responseJSON() {
(request, response, json, error) in
println(error)
println(jso
Maybe it is too late but I solved this problem in another way not mentioned here:
When you use .responseJSON(), you must set the response header with content-type = application/json, if not, it'll crash even if your body is a valid JSON. So, maybe your response header are empty or using another content-type.
Make sure your response header is set with content-type = application/json to .responseJSON() in Alamofire work properly.