Friday 15 August 2014

ios - Converting JSON string into object -


I am trying to convert a JSON string into object c in Object C:

 < Code> NSString * jsonString = (NSString *) responseObject; NSDTA * JSNDTU = [JasonString Data Wrapping Encoding: NSUFF 8 String Encoding]; Id jsan = [nsjsnasialisation JSONObjectWithData: jsonData option: 0 error: zero];  

jsonString value

"[[\" date \ ": \" 12-01-2015 \ ", \ "Time \": \ "7:00 pm \", \ "title \": \ "first car service \", \ "description \": \ "this was the first car service \"]

But the value of JSN is always zero How do I convert jsonString to an NSArray?

My (third) condition: Your Jason string is not correct if it includes leading and following quotation Changed to \ " with " .

Better: Send the correct JSON to the server or other JSON source.


No comments:

Post a Comment