Problem: How to parse the string that contains the json value? Solution: extension String { var parseJSONString : AnyObject? { let data = self .data(using: String .Encoding.utf8, allowLossyConversion: false ) if let jsonData = data { // Will return an object or nil if JSON decoding fails do { let message = try JSONSerialization.jsonObject(with: jsonData, options:.mutableContainers) if let jsonResult = message as ? NSMutableDictionary { return jsonResult //Will return the json array output ...
Website Development Service
ReplyDeleteMobile App Development Service
E-Commerce Website Development Service
Android App Development Service
Website Designing Service
iOS App Development Service
All Country Flags
Flags of all Countries
National Flags
Ahir Rishabh