Value Mapper: String replace

Hello @Roland, @Gugi and @ahmad , I have a JSON object containing a string value. Although I am able to replace other characters, such as “,” with “,\n”, replacing “\n” with “,\n” is not successful

Screenshot 2023-03-29 at 10.49.14

Screenshot 2023-03-29 at 11.02.08

Hi @abubakar

For example, you have a property called “address” that has line breaks. You can split it using a PCRE and join it again using JMESPath, such as below.

Please give it a try and let us know if you find any problems.

1 Like

This works @Gugi , thanks

1 Like