I would like to create a MSSQL scalar function to convert a string to valid JSON. As far as I can tell newline, returns and quote characters are an issue but I cannot find a complete list or a complete function.I would like to create a MSSQL scalar function