JSONResult to String
Posted
by
Dustin Laine
on Stack Overflow
See other posts from Stack Overflow
or by Dustin Laine
Published on 2010-12-31T19:39:06Z
Indexed on
2010/12/31
19:54 UTC
Read the original article
Hit count: 252
I have a JsonResult
that is working fine, and returning JSON from some POCO's. I want to save the JSON as a string in a DB.
public JsonResult GetJSON()
{
JsonResult json = new JsonResult
{
Data = GetSomPocos()
};
return json;
}
I need to audit the response, so I want to save the json
into a DB. I am having trouble finding a way to get the JSON as a string.
Any help is appreciated.
© Stack Overflow or respective owner