While making an API Call, my json String is containing \, which I want to remove. But I am not able to do so, by using the replaceAll method of String class. Can anyone please help?
The json request is malformed due to \ in between.
DEBUG|Debug Log for Serialized JSON"{ \"Party\":{ \"PartyContacts\":[ { \"State\":{ \"ShortName\":\"GA\" }, \"MailingAddress\":{ \"AddressLine1\":\"605 Choctaw Circle\" } } ], \"PartyAddresses\":[ { \"State\":{ \"ShortName\":\"GA\" }, \"PostalCode\":\"38751\", \"IsMain\":\"True\", \"IsForDocumentation\":\"True\", \"HomeState\":{ \"ShortName\":\"GA\" }, \"HomePostalCode\":\"38751\", \"HomeCity\":\"Indianola\", \"HomeAddressLine1\":\"605 Choctaw Circle\", \"City\":\"Indianola\", \"AddressLine1\":\"605 Choctaw Circle\" } ] }}"
String.replaceAll()
? Where is the JSON coming from?