Questions tagged [nsjsonserialization]

NSJSONSerialization class is used to convert JSON to Foundation objects and Foundation objects to JSON

NSJSONSerialization class is used to convert JSON to Foundation objects and Foundation objects to JSON.

More information: NSJSONSerialization Class Reference

709 questions
-4
votes
1 answer

Exception when reading JSON result

I am trying to parse the following JSON response: http://www.breakingnews.com/api/v5/items?compact=false. Here is my code to parse it: NSError* error = nil; NSData* data = [NSData dataWithContentsOfURL:[NSURL…
James Anderson
  • 556
  • 3
  • 16
  • 41
-4
votes
1 answer

Need to generate a JSON document to upload to server after iterating an NSMutableArray of objects with NSString parameters in iOS

I have an NSMutableArray that holds a collection of objects, with each object having three parameters of type NSString. What I need to do is iterate through this collection, and create a single JSON document with two subsections: one is called…
syedfa
  • 2,801
  • 1
  • 41
  • 74
-5
votes
1 answer

Parse this Json to NSmutablearray

i've this unique text plain…
-7
votes
1 answer

Parse JSON which consist of Array of Array objects

How to parse JSON which consist of array of array objects? Here is my JSON string: I want to parse Delhi,uttar pradesh,south mumbai,karnataka,test in one array and then llly central delhi,Ghaziabad.. to another set of array? { "Result":…
muthukumaresh
  • 103
  • 1
  • 8
1 2 3
47
48