You need to sign in to do that
Don't have an account?
anu35
JSON.deserializeUntyped Code Coverage in apex
Hi All,
am unable to do test coverage " Map<String,Object> jsonStub = (Map<String,Object>)JSON.deserializeUntyped(bodyResp); " getting error as "System.JSONException: Illegal unquoted character ((CTRL-CHAR, code 13)): has to be escaped using backslash to be included in string value at [line:1, column:3254] " Can any one help me on this.
Thanks
am unable to do test coverage " Map<String,Object> jsonStub = (Map<String,Object>)JSON.deserializeUntyped(bodyResp); " getting error as "System.JSONException: Illegal unquoted character ((CTRL-CHAR, code 13)): has to be escaped using backslash to be included in string value at [line:1, column:3254] " Can any one help me on this.
Thanks
You will have to trim off all the special characters in the response like this
Kindly mark it as an answer if that works !
All Answers
You will have to trim off all the special characters in the response like this
Kindly mark it as an answer if that works !
Thanks,
Vijay
You will have to change the Original class and NOT your test class. Then when you call the main class method from the test class, you should no longer see the error.