Below is my JSON string which am sending from my iOS native code to java script, by calling evaluateJavaScript on WKWebView. But when I run the project I am getting an error stated below(am using WKWebview to show my html file).
JSON:
{
"config": {
"APIUrl": "https:some Url",
"provider": "ActiveDirectory",
"UserDetails": {
"UserName": "Test User",
"FullName": "",
"EMailAddress": ""
},
"formdata": [{
"postData": "{\"args\":[{\"Name\":\"ProcessName\",\"Value\":\"offlineformios\"},{\"Name\":\"isSubmitForm\",\"Value\":true}}]}",
"url": "https:Get Url",
"type": "POST",
"responseStatus": 200
},{
"postData": "{\"args\":[{\"Name\":\"ProcessName\",\"Value\":\"offlineformios\"},{\"Name\":\"isSubmitForm\",\"Value\":true}}]}",
"url": "https:Get Url",
"type": "POST",
"responseStatus": 200
}],
"CDNURL": "file: Local file path",
"queryString": {
"PROCESS": "offlineformios"
},
"auth": "Basic test auth",
"culture": "en-US"
}
}
Error:
WKJavaScriptExceptionMessage=SyntaxError: JSON Parse error: Expected '}', WKJavaScriptExceptionColumnNumber=32,
I have tried with jsonlint.com to check whether my JSON string is valid or not but it showing as valid. So I could not find any solutions,if anyone can help me out this that would be greate and I would expect the solution for this!Thanks.