I am experimenting with SQL Server 2016 For JSON AUTO clause. I created a stored procedure and when I view the data with in SQL Server I get something like
[{"TotalCount":72,"ClaimReason":"Def Merch"},{"TotalCount":320,"ClaimReason":"Price Correction"},{"TotalCount":47,"ClaimReason":"Dup Ship"}]
With in my ASP.NET website I created a method to call the above stored procedure and when I view the data it looks different, backslashes have been added to it.
object dtOpenClaims = spReports.OpenClaimCountsByClaimReason();
The format of the JSON changed to the following
[{\"TotalCount\":72,\"ClaimReason\":"\Def Merch\"}.....
Any ideas why?
Thanks,
Toni