The json :
{"ipAuthority":1,"data1":[["2020-07-01",1],["2020-07-02",2],["2020-07-03",3],["2020-07-04",4]]}
class root
{
//??????
}
Then how create the class to format the about json?
The json :
{"ipAuthority":1,"data1":[["2020-07-01",1],["2020-07-02",2],["2020-07-03",3],["2020-07-04",4]]}
class root
{
//??????
}
Then how create the class to format the about json?
This isn't supported in the framework itself, but many editors have a feature for this included in the box.
Here is an example from Visual studio that will generate your statically typed classes:
Once you have the class, you can use the included in .net core to reverse it back to json, under System.Text.Json. You can read more about it at https://learn.microsoft.com/en-us/dotnet/standard/serialization/system-text-json-how-to