using System; using System.Collections.Generic; using System.Linq; using System.Web; using EHEC_Server; namespace EHEC_Server { public class ClusterConverter { public void WriteJson() { ClusterPatient clusterp = new ClusterPatient(); List clusterPatientList = new List(); clusterPatientList = clusterp.GetClusterPatients(); var json = JsonConverter.Serialize(clusterPatientList); System.IO.File.WriteAllText(@"C:\Users\novski\Desktop\cluster.json", json); } private List GetCluster() { return new List(); } } }