Serialize JSON string that contains escaped (backslash and double quote) Swift return Badly formed object
问题 I have response string from the backend like this: { "status": "success", "data": "{\"name\":\"asd\",\"address\":\"Street 1st\"}" } I think the problem was because the double quote (") in the data String. When I remove the double quote, the serialization was success. But the response is from backend and I have to deal with it. Anyone can solve this problem? Thank you. Here is the playground code. import Foundation var jsonStr = """ { "status": "success", "data": "{\"name\":\"asd\",\"address\"