Hi Team,
My site is headless CMS (export AEM component dialog data as JSON), We use Jackson Exporter in Sling Models to export data as JSON.
Problem here is, We have RTE fields across our site. In JSON output for RTE field contains unicode characters for special symbols like <, >, space and etc.,. please find below.
"TestField" : "\u003Cp\u003E\u003Cb\u003E some test data in rte \u003C/b\u003E\u003C/p\u003E",
Some online JSON viewers sites and postman is processing the (removing escape chars) below data, but my UI team wants to remove these escape characters.
I have tried using @JsonRawValue annotation, which removes unicode characters and produces original data which added in RTE, but the problem with @JsonRawValue is it removes double quotes (") as well for the JSON value, which causes the json invalid like this
"TestField" : <p><b>some test data in rte</b></p>,
I want to keep double quotes but needs to removes unicode characters, Please suggest solutions for my issue
Sling Model Exporter Docx https://experienceleague.adobe.com/docs/experience-manager-learn/foundation/development/develop-slin...
Jackson Exporters Docx https://github.com/FasterXML/jackson-annotations/wiki/Jackson-Annotations