I have:
Function SaveAnswers(ByVal collection As FormCollection) As ActionResult
End Funciton
And I want to turn collection to JSON, I thought there was a serializer to do this but can't seem to find it?
I have:
Function SaveAnswers(ByVal collection As FormCollection) As ActionResult
End Funciton
And I want to turn collection to JSON, I thought there was a serializer to do this but can't seem to find it?
There is. In c#:
return Json(object/array/whatever);
It returns a JsonResult, which is an ActionResult, so it "fits" into your function as it exists already.
James