Top "Nsjsonserialization" questions

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

JSON Serialization crashing in swift

I had been using the following line of code to parse JSON data in Objective-C, but the same in Swift …

swift nsjsonserialization
iOS - NSJSONSerialization: Unable to convert data to string around character

I'm getting this error while parsing JSON: NSDictionary *json = [NSJSONSerialization JSONObjectWithData:data options:NSJSONReadingMutableContainers error:&error]; Error Domain=NSCocoaErrorDomain …

ios objective-c xcode cocoa-touch nsjsonserialization
Convert JSON to NSArray

I have a JSON array being output on a page. I would like to convert this JSON array into an …

ios objective-c nsarray nsjsonserialization
How to include null value in the JSON via NSJSONSerialization?

I think I get it how to use the NSJSONSerialization over all. The call I am making is: [NSJSONSerialization dataWithJSONObject:…

objective-c ios json null nsjsonserialization
how to prevent NSJSONSerialization from adding extra escapes in URL

How do I prevent NSJSONSerialization from adding extra backslashes to my URL strings? NSDictionary *info = @{@"myURL":@"http://www.example.com/…

objective-c nsjsonserialization
How to convert NSObject class object into JSON in Swift?

I have var contacts : [ContactsModel] = [] and class ContactsModel: NSObject { var contactEmail : String? var contactName : String? var contactNumber : String? var recordId : …

json swift nsobject nsjsonserialization
JSON.NET serialize JObject while ignoring null properties

I have a JObject which is used as a template for calling RESTful web services. This JObject gets created via …

c# json json.net nsjsonserialization
Invalid top-level type in JSON write

I'm trying to create a simple JSON object but I still get error and I know what's wrong in my …

ios objective-c json nsjsonserialization gcdwebserver
Check if response from API is valid JSON

Is there a way with NSJSONSerialization to check that the NSData is valid JSON? I don't want the application to …

objective-c ios json ios5 nsjsonserialization
iOS Send JSON data in POST request using NSJSONSerialization

I know that there are similar questions posted as I have read though most all of them and still am …

php ios json post nsjsonserialization