4 respuestas
Hi Anu,You will have to trim off all the special characters in the response like this
Kindly mark it as an answer if that works !String replaceIllegal= res.getbody().replaceAll('\n','').replaceAll('\r','');
Map<String,Object> responsemap = (Map<String,Object>)JSON.deserializeUntyped(replaceIllegal);