03-19-2025 09:11 AM
Hi,
Kindly ask for support
using json text addon to convert labview string to json.
I don't understand why the conversion adding \n \r to the text. tried couple of solution found on the forum (json prettify) but nothing solve this issue.
please see image below and code snippet
Any idea how to deal with it ?
03-19-2025 09:37 AM
HI tamir,
@Tamir87 wrote:
I don't understand why the conversion adding \n \r to the text.
Because those "\r" are already contained in your input string...
Where do we see a "\n" in your image?
03-19-2025 10:28 AM - edited 03-19-2025 10:31 AM
Hi,
These are escape sequences the function produces for line feeds / carriage returns because control characters and some special characters (such as " ) cannot be put as is in the json string. If you convert the JSON output back to a string, those will be converted back to actual line feeds / carriage returns.
Regards,
Raphaël.
03-19-2025 10:32 AM
sorry in this example I didnt show the \n