Json error in SAP oData service iOS application

484 Views Asked by At

I created sample app using SAP Cloud platform, it also generated Proxy classes with backend url "http://staging.*****.com/OData/sapiOS.svc/". When I running the app it didn't display the details and shows an error: " JsonError: Expected token start character, found '<'." JsonError.

1

There are 1 best solutions below

0
On

You can ignore all app transport security restrictions with a single key add these to the Info.plist open as Source Code:

<key>NSAppTransportSecurity</key>
<dict>
    <key>NSAllowsArbitraryLoads</key>
    <true/>
</dict>