using System; using Newtonsoft; public class Test { public enum ManufacturerCampaignServingPages { Mobile_Model_Page = 1, Desktop_Model_Page = 2, Mobile_DealerPriceQuote = 3, Desktop_DealerPriceQuote = 4, Mobile_PriceInCity = 5, Desktop_PriceInCity = 6 } public static void Main() { ManufacturerCampaignServingPages[] x = new ManufacturerCampaignServingPages[]{ ManufacturerCampaignServingPages.Mobile_Model_Page, ManufacturerCampaignServingPages.Mobile_DealerPriceQuote, ManufacturerCampaignServingPages.Mobile_PriceInCity }; Console.WriteLine( Newtonsoft.Json.JsonConvert.SerializeObject(x) ); } }