예제 #1
0
        internal static void ExportPeopleNotVictimsOfAnomalies()
        {
            List <PersonDto> people = PersonStore.GetPeopleNotVictimsOfAnomalies();
            string           json   = JsonConvert.SerializeObject(
                people.Select(p => new
            {
                Name       = p.Name,
                HomePlanet = new { Name = p.HomePlanet }
            }),
                Formatting.Indented);

            File.WriteAllText("../../Export/people.json", json);
        }