how to put anonymous json as class member and convert all to json in c#
I'm having a well-defined class for sending as JSON body in an HTTP request. public class EventData { public string deviceJobId { get; set; } public int eventID { get; set; } public long time_ms { get; set; } ///…