private static string GetChannelSettings(String channel) { var channelExists = Bot.Clients.ContainsKey(channel); var json = new JavaScriptSerializer().Serialize(new { status = channelExists ? "success" : "not found", channel = new { name = channel }, settings = new { linkBan = ExampleSetting.GetLinkSetting(channel) } }); return(json); }