I have a json document like this:
[
{
"TimerDuration": "1",
"UpdateDate": "a",
"DataBinding": [
{
"Name": "a",
"Path": "b"
},
{
"Name": "a",
"Path": "b"
}
]
}
]
The classes behind this are:
internal class Settings
{
public String TimerDuration;
public String UpdateDate;
public List<DataBindings> DataBinding = new List<DataBindings>();
}
and:
internal class DataBindings
{
public String Name;
public String Path;
}
I want to deserialize the document into strings, I can use. How can I do this?
you have list of objects in your JSON as []. also please be more specific what did you mean to [deserialize the document into strings]??? as i understood you did not create class structure correctly instead of properties you have fields.
there are 2 approaches. with Newtonsoft and with System.Text.Json