Hi
I have a json array. I want to deserialize and map to another class its output. have written code like
Json
[
{"PageNo":1,"FormId":98,"FormType":1,
"DtoInformation":
"{
"TimeEntryDetails":
[
{"Loc":"",
"Set":"",
"LunchStart":"",
"LunchEnd":"",
"WrapTime":"",
"Zone":""
},
{"Loc":"",
"Set":"",
"LunchStart":"",
"LunchEnd":"",
"WrapTime":"",
"Zone":""
},
]
]
HtgOutput.cs
public class HtgOutput{
public string LunchStart{get;set;}
public string Loc {get;set;}
public string LunchEnd{get;set;}
public string WrapTime {get;set;}
public string Zone {get;set;}
}
public async Task<HtgOutput> ReadData (SortedFile st)
{
HttpResponse resp= new HttpResponse.ReadData(st.IncomingFile);
if(resp.IsSuccessCode)
{
resp = await response.Content.ReadAsStringAsync();
}
var des = JsonConvert.DeserializeObject(st.IncomingFile);
return ds;
}
}