score:1

Accepted answer

Try updating code like this:

data: JSON.parse("@Html.Raw(@ViewData["data"])")

Related Query

More Query from same tag