I have a datatable that I\'m converting into a List, serializing it and passing it to my view using a viewmodel.
My viewmodel looks like this:
public
JSON is valid JavaScript Object anyway, while you are printing JavaScript itself, you don't need to encode/decode JSON further once it is converted to JSON.
Following will be printed, and it is valid JavaScript Expression.