func nsdataToJSON(data: NSData) -> AnyObject? {
do {
return try JSONSerialization.jsonObject(with: data as Data, options: .mutableContainers) as AnyObject
} catch {
print(error)
}
return nil
}
func nsdataToJSON(data: NSData) -> AnyObject? {
do {
return try JSONSerialization.jsonObject(with: data as Data, options: .mutableContainers) as AnyObject
} catch {
print(error)
}
return nil
}