Hi,
I hope this question is still opened :)
It seems that you use ASP.NET MVC, right?
If you want to return a Json object directly from your action, you can just write the following:
return new JsonResult { Data = new { Test1 = "asdf", Test2 = "qwer" } };
if you already have a variable containing the data you want to return, you can do it this way:
return new JsonResult { Data = yourDataObject };
Hope this helps.
Best regards and happy coding,
Chris