I am executing a stored procedure on my server which returns a DataTable. The DataTable has some columns that have JSON data in them. When I return the result to the client the top-level of the DataTable is properly formatted to JSON but the columns with JSON data are returned as strings. How can I convert the entire table (including columns with JSON) to JSON before returning to the client?
DataTable
ColA ColB ColC
1 Test [{"ColD":2,"ColE":"Another Test"}]
What I'm Getting
[
{
"ColA": 1,
"ColB": "Test",
"ColC": "[{\"ColD\":2,\"ColE\":\"Another Test\"}]"
}
]
What I Need
[
{
"ColA": 1,
"ColB": "Test",
"ColC": [
{
"ColD": 2,
"ColE": "Another Test"
}
]
}
]