I'm trying to update an attribute (for example let's call it myAttribute) in order to replace all " by \" for example :
- {"field1":1,"field2":{"field21":21,"field22":"22"}} will become
- {\"field1\":1,\"field2\":{\"field21\":21,\"field22\":\"22\"}}
for that purpose I'm using the updateAttribute procesor with the replaceAll function for example :
- property : myAttribute
- Value : ${log.message:replaceAll('"','\"')}
the result is the same (\ is used as escape sequence prefix) I tried to use also two \\ but the result is the same.
Someone can help me ?