Json variable to keep new line breaks

Hey,
Did you try this:
processedString = originalString.Replace(vbCrLf, “\r\n”).Replace(vbCr, “\r”).Replace(vbLf, “\n”)

This replaces Windows (vbCrLf ), Mac (vbCr ), and Linux (vbLf ) newlines with their escaped versions.

2 Likes