Advertisement
Guest User

Untitled

a guest
Jul 22nd, 2019
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. using (var csv = new ChoCSVWriter("file1.csv").WithFirstLineHeader().WithDelimiter(","))
  2. {
  3. using (var json = new ChoJSONReader("file2.json")
  4. .WithField("RecordID", jsonPath: "$..Events[*].RecordId")
  5. .WithField("RecordType", jsonPath: "$..Events[*].RecordType")
  6. .WithField("EventDate", jsonPath: "$..Events[*].EventDate")
  7.  
  8. {
  9. csv.Write(json);
  10. }
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement