9
This is first time that I work with json. I am trying to return Json from my action method:
public JsonResult Upload()
{
...
return Json(new { foo = "sos....sos....sos..."});
}
But in result all I get is my message wrap in this "pre" tag. How to parse "foo" from this?
"<pre style="word-wrap: break-word; white-space: pre-wrap;">{"foo":"sos....sos....sos..."}</pre>"