objective c - JSON missing Double Quotes iOS -


I'm facing a strange problem. I am parsing JSN data from our server when I have it through my browser , Then this data shows:

  productCombinationAttributes ": [{" value ":" green "," value ":" 0 "," img_id ":" 1005 "," Name ":" color "," id ":" b_9 "}, {" value ":" blue "," value ":" 0 "," img_id ":" 1005 "," name ":" color " "Id": "b_10"}, {"value": "yellow", "price": "0", "img_id": "1005", "name": "color", "id": "b_14"} , "Value": "", "value": "100", "img_id": "1005", "name": "size", "i "" Value: "", "value": "50", "img_id": "1005", "name": "size", "id": "value": "value": "value": "value": "value": "metallic" "B_12"}, "value": "value": "0.00", "img_id": "1005", "name": "content", "id": "b_13"}], "product performance": [] , "Payment Method": ["Credit or Debit Card", "PayPal", "Dragon Pay", "Cash On Delivery"], "Product Details": [{"Quantity": "12", "Combination ID": [ "B_9", "B_12", "B_13"], "id": 159, "location": {"NCR": "100.0000", "Makati": "120.0000"}, {"Quantity": "12 "," Combination ID ": [" B_14 "," B_11 "," B_13 "]," ID ": 1520," Est ": {" NCR ":" The 100,000 but when I access it through XCODE and to use it Fastoning or other ways to power parse it. JSON looks like this:  
  productCombinationAttributes = ({id = "b_9"; "img_id" = 1005; name = color; value = 0; value = green;}, {id = " B_10 "; Img_id" = 1005; name = color; value = 0; value = blue;}, {id = "b_14"; "img_id" = 1005; name = color; value = 0; value = yellow;}, { Id = "b_11"; "img_id" = 1005; name = size; value = 100; value = Xl;}, {id = "b_12"; "img_id" = 1005; name = size; value = 50; value = l ;}, {Id = "b_13"; "img_id" = 1005; name = content; value = "0.00"; value = metal;});   

Is:

  FHTPAKAST Operation Manager * Manager = [FHtt TPRAFFFEction Manager Manager]; [Manager GET: [NSString stringWithFormat: @ "url.com"] Parameters: Zero breakthrough: ^ (F.httpquequation operation * operation, id response object) {nslog (@ "% @", response object); [Self Jason Parser: Scroll Guardian View: sv_parent];} Failure: ^ (FHTPPKAEAST Operation * Operation, NSERR * Error) {NSLog (@ "Failure");}];   

After displaying return data after my request the problem is missing double quote marks. Can anyone help me in this? Thank you in advance :)

It is not missing your print [NSDictionary description] not a Jason string AFHTTPRequestOperationManager has already parsed json for you on nsDictionary . If you want to get the original JSON string, you can use the [NSJSONSerialization data withJSONObject: options: error:] to serial JSON string from the NSDictionary.

  NSData * data = [NSJSNSArilization datagramjon object: response object option: 0 error: zero]; NSString * jsonString = [NSString alloc] initWithData: data encoding: NSUTF8StringEncoding];    

Comments

Popular posts from this blog

php - PDO bindParam() fatal error -

logging - How can I log both the Request.InputStream and Response.OutputStream traffic in my ASP.NET MVC3 Application for specific Actions? -

java - Why my included JSP file won't get processed correctly? -