objective c - JSON parsing is sending error message in iOS 7.1 -


I checked my code, but what is not wrong with my code..I use the post method I am working on JSON parsing. The same code is working in Xcode 5, but it is not working in Xcode 6. Error error in my JSON serialization.

  parsingResultLogin = {"error_code" = "-1"; "Error_message" = ""; }  

My code is -

  - (zero) loginFromServer {NSString * strURL = [NSString stringWithFormat: @ "% @ login", GLOBALURLDOMAIN]; NSLog (@ "strURL =% @", strURL); NSDTA * Datapostalologin = Nil; NSDictionary * dicPostDataLogin = [NSDictionary DictionaryWide Objects Endcases: @ "qwertyuiwwqq", @ "user name", @ "qwertyuiop", @ "password", @ "1234567890987654", @ "device_token", @ "ios", @ "device_type" Zero] ; NSLog (@ "% @", [DCPostDataOg Description]); Datapostalogin = [NSJSnationalisationDatvidJSOnObadget: DictPostDataLogin Option: NSJSOnDritingPrettyprint Error: Zero]; NSMutableURLRequest * Request = [NSMutableURL request request with url: [NSURL URLWithString: strURL] Cash Policy: NSURLRequestReloadIgnoringCacheData Timeout Interval: 60]; NSLog (@ "request =% @", request); [Set http: bbdi: datapostlagin]; [Set http system: @ "post"]; [Request Set Value: [NSString stringWithFormat: @ "% lu", (unsigned long) [dataPostLogin length]] forHTTPHeaderField: @ "content-length"]; [Request Set Value: @ "JSON / application" forHTTPHeaderField: @ "Content-Type"]; NSDT * responseData = [synchronous request to send NSUR connection: Request is returning response: zero error: zero]; NSLog (@ "responses =% @", feedbackdata); If (feedback data == tap) {AppDelegate * appdel = [[UIApplication shared application] representative]; [Appadel warning error]; } Other {NSDictionary * parsingResultLogin = [NSJSNRialization JSONObjectWithData: responseData option: 0 error: zero]; NSLog (@ "parsingurcheltologin =% @", parsing resultogin); // NSString * strParseDataResult = [ParsingResearchLogin objectwork: @ ""]; The key / value in JSON is not different from ":", "no" = "=" "=" "=" text ">  


Comments

Popular posts from this blog

apache - 504 Gateway Time-out The server didn't respond in time. How to fix it? -

c# - .net WebSocket: CloseOutputAsync vs CloseAsync -

c++ - How to properly scale qgroupbox title with stylesheet for high resolution display? -