I need to show json string in the textbox. It came from db as string and drops after first quote.
If I replace with single quiot:
jsonString.Replace("\"", "'")
it works but show single string instead.
I tried this answer:
jsonString.Replace("\"", "\\\"")
but it doesn't work.
How i can show double quotes. I use C#, not JavaScript.
PS. I can't post real json, but lets take some very simple:
{ "name":"John" }
Technology: web application MVC4, controller uses repository to get data and then show it in cshtml view.