I have a model object
model.ToDoList = { "completed": false, "taskId": "in01", "memberName": "JD", "dueDate": "Mon Apr 25 16:09:18 EDT 2016" }, { "completed": false, "taskId": "in02", "memberName": "JD", "dueDate": "Mon Apr 25 16:09:18 EDT 2016" }, { "completed": false, "taskId": "in16", "memberName": "JD", "dueDate": "Wed Apr 20 16:09:18 EDT 2016" } ]
This is a json object stored as a string. How can I convert the string into an object in the view? I am trying to loop through that ojbect and display on the screen
@model Gallant.Models.Enrollment
<table class="table">
<tr>
<th>Completed</th>
<th>Description</th>
<th>Member</th>
<th>Due Date</th>
<th>Upload Document</th>
</tr>
</table>
<div class="form-group">
<div class="col-md-10">
@Html.DisplayFor(model => Model.ToDoList)
</div>
</div>