So I've got a JSON that'll be coming in apex via an API in the format below:
"articles": [ '+
' { '+
' "originalURL": "http://search.eci.gov.in/ae_2008e/", '+
' "dateCollected": "2008-12-11", '+
' "c6URL": "https://secure.c6-intelligence.com/c6images/0013960000/0013955977.pdf", '+
' "categories": [ '+
' { '+
' "name": "PEP" '+
' } '+
' ], '+
' "snippet": { '+
' "title": "kjlkjl", '+
' "summary": "The source provides political exposure detai\"ls of t\"he subject. Please refer to the Political Positions and Linked Persons sections of the profile.", '+
' "keywordsMatched": [ '+
' "jklj" '+
' ] '+
' } '+
' } '+
' ], '
The problem i am facing here is that some summary fields have values in which double quotes(") are used in the content and this causes the parser class/method to fail. Does anyone have an idea as to how to resolve this.PS: if i try and use replace all to replace ':' or '\"' with any other character all double quotes are replaced
detai\"ls. Are you getting that from API or from UI?