Explain me how to parse json?



Explain me how to parse json?..

Answer / Makeshwar Tanti

Parsing JSON in iOS can be done using NSJSONSerialization or Swift's native coding API, Codable. Here is an example using NSJSONSerialization:n```swiftnlet jsonData = NSData(contentsOfFile: filename)nlet jsonObject: AnyObject? = NSJSONSerialization.jsonObjectWithData(jsonData, options: .MutableContainers, error: nil)```

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Apple iOS Interview Questions

What are the design patterns in ios?

1 Answers  


Difference between nil and Nil.

1 Answers  


What is @dynamic and any place where it is used?

1 Answers  


What are the different store migration options? How do they work?

0 Answers  


What is foundation framework in ios?

1 Answers  


What is dynamic in iOS operating system?

1 Answers   B-Ways TecnoSoft,


Explain arc?

1 Answers  


Explain layer objects?

1 Answers  


What is gcd? How is it used?

1 Answers  


What is ipad screen size?

1 Answers  


Why is iboutlet weak?

1 Answers  


What is ios deadlock?

1 Answers  


Categories