Dear community members,
I'm trying to create JCR nodes based on the data returned by http get. Some of the data contains special characters.
"label": "Présentation de l’entreprise:",
"value": "<p style=\"margin: 0px;\">Chez , nous donnons aux gens la possibilité d'interagir naturellement avec leurs divers appareils connecté.</p>"
"more-details": "Sommaire du poste: ",
"value": "<p style=\"margin: 0in; margin-bottom: .0001pt;\"><span style=\"font-family: arial, helvetica, sans-serif; font-size: 10pt;\">"
I cannot directly save the data, can someone please suggest a way I can save this information? I need to display the information as well.
Just to give another insight, I cannot create i18 key-value pair for this data(yeah 😞 )
why don't you create a node and save the whole API response as nope property?[Like a node "response" in JCR repository and a property apiResponse as key and json as value]
You can create the node and property in AEM programmatically and there are various ways of doing that like using sling or node API.
Go through below links to refer the code
Programatically create node
create content node