I\'m using the JSON library NewtonSoft to generate a JSON string:
JObject out = JObject.FromObject(new { typ = \"photos\"
If someone here who doesn't want to use any external library in MVC, they can use the inbuilt System.Web.Script.Serialization.JavaScriptSerializer
System.Web.Script.Serialization.JavaScriptSerializer
One liner for that will be:
var JsonString = new JavaScriptSerializer().Serialize(new { typ = "photos" });