home
search
help
profile
liking the experience? our app is even better
registration for
employee referral programs
are now open
get referred to google, amazon, flipkart and more
register now  
showing results for what is json stringify in swift
1do {
2        let arrJson = try JSONSerialization.data(withJSONObject: dataAddress, options: JSONSerialization.WritingOptions.prettyPrinted)
3        let string = String(data: arrJson, encoding: String.Encoding(rawValue: String.Encoding.utf8.rawValue))
4        let tempJson = string! as String
5        print("%%%%%%",tempJson)
6    }catch let error as NSError{
7        print(error.description)
8    }
upvote
downvote
source