How do I prevent NSJSONSerialization from adding extra backslashes to my URL strings?
NSDictionary *info = @{@\"myURL\":@\"http://www.example.com/test\"}; NS
If your target is >= iOS 13.0, then just add .withoutEscapingSlashes to the options.
Example:
let data = try JSONSerialization.data(withJSONObject: someJSONObject, options: [.prettyPrinted, .withoutEscapingSlashes]) print(String(data: data, encoding: String.Encoding.utf8) ?? "")