Hi Kylee,
if possible can you share sample JSON here.
Thanks,
Mobin
For a generic solution, either use an export mapping to build your json, or if you need to build it manually, escape the value for the title (and possible other string attributes as well) first. Maybe the escapeHtml action does the job, but I have a little java action for it that takes an InputString string parameter and returns it escaped:
[...]
import org.apache.commons.text.StringEscapeUtils;
[...]
// BEGIN USER CODE
return StringEscapeUtils.escapeJson(InputString);
// END USER CODE
[...]
Hi Kylee,
Use escape characters while preparing your request.
Check StringUtils java actions from CommunityCommons module, you can use java actions like EscapeHTML etc.
otherwise you can write one Custom java action to implement Escape characters for your String Body.
Regards,
Ajay