I have some problems converting tabular data to JSON using the FOR JSON PATH syntax:
If i do a standard query:
SELECT b.Name FROM dbo
I get results of the form: 12/5-A-1. I need this converted to JSON data without escaping the backslash character. However, when i convert it to JSON:
SELECT b.Name FROM dbo FOR JSON PATH, WITHOUT ARRAY_WRAPPER
the result is of the form: {"Name": "12\/5-A-1"}
How can i do this transformation without escaping the backslash character and get the result {"Name": "12/5-A-1"}
?