How to visualize json data input? -


i have json file follows:

{       "status":"up",       "diskspace":     {"status":"up","total":63279460352,"free":6826328064,"threshold":10485760}      .........   } 

now, want visualize above json file in such way can have on status is, threshold is, , can alert or color change, if threshold crosses limit. file changes dynamically on particular port.

which library/tool better above?

make class resembling json.
example:

public class diskspace {      [jsonproperty("status")]     public string status { get; set; }      [jsonproperty("total")]     public long total { get; set; }      [jsonproperty("free")]     public long free { get; set; }      [jsonproperty("threshold")]     public int threshold { get; set; } }  public class hddinfo {      [jsonproperty("status")]     public string status { get; set; }      [jsonproperty("diskspace")]     public diskspace diskspace { get; set; } } 

make kind of visualization want to.
print in console application, wpf application, winforms application, uwp application.
it's - make wpf application wpf-notifyicon.

implement backgroundtask reads json every x seconds, deserializes object of class , update gui when it's done.
example of making object json string using newtonsofts json.net:

var hddinfo = jsonconvert.deserialize<hddinfo>(jsontext); 

scheduling libraries know of: quartz or fluentscheduler
(.net framework should have well.)


Comments