I\'m using the JSON library NewtonSoft to generate a JSON string:
JObject out = JObject.FromObject(new { typ = \"photos\"
You can use the overload of JObject.ToString() which takes Formatting as parameter:
JObject obj = JObject.FromObject(new { typ = "photos" }); return obj.ToString(Formatting.None);