public passengerViewModel() { List<Passenger> psngrs = new List<Passenger>(); FileReadPsngrJSON FileRead = new FileReadPsngrJSON(); psngrs = FileRead.LoadJson(); readJSONFile = new ObservableCollection<Passenger>(psngrs); }
public void PsgInfo() { List<Passenger> passengerData = new List<Passenger>(); FileReadPsngrJSON FR = new FileReadPsngrJSON(); List<Passenger> fileReadList = FR.LoadJson(); passengerData.AddRange(fileReadList); string json = JsonConvert.SerializeObject(passengerData, Formatting.Indented); File.WriteAllText("Output.json", json); }
public void PsgInfo() { List <Passenger> passengerData = new List <Passenger>(); FileReadPsngrJSON FR = new FileReadPsngrJSON(); List <Passenger> fileReadList = FR.LoadJson(); passengerData.AddRange(fileReadList); string json = JsonConvert.SerializeObject(passengerData, Formatting.Indented); File.WriteAllText("Output.json", json); }