In my NSURLConnectionDelegate protocol function connectionDidFinishLoading(connection: NSURLConnection!), I am getting son result. But If I try to use NSURLConnection twice for connecting another API in the server, I am getting the error "The data couldn’t be read because it isn’t in the correct format". But If U run the request separately, it is giving the output.
I use the code found in stack overflow NSURLConnection Using iOS Swift