Open markst opened 2 years ago
Strangely Postman response doesn't seem to struggle with JSON.
Definitely due to some erroneous characters which we've managed to remove from the editor.
However I think the editor should be sanitising this to avoid it happening in the future.
Client.handleJSON
is failing to parse Contentful api response. https://github.com/contentful/contentful.swift/blob/master/Sources/Contentful/Client.swift#L476(lldb) po JSONSerialization.jsonObject(with: data, options: [])
Error Domain=NSCocoaErrorDomain Code=3840 "Missing low code point in surrogate pair around character 14793." UserInfo={NSDebugDescription=Missing low code point in surrogate pair around character 14793.}(lldb) po String(data: data, encoding: .utf8)
```json ▿ Optional