here "additionalInfo" field is "" blank basically its a array formate...but sometimes its coming "", how will handle this.
actual response formate is
"bill":{
"additionalInfo":[
{
"name": "Pena",
"value": "100.20"
}
],
"amount": "",
"billDate": "",
"billNumber": "",
"billPeriod": "",
"customerName": "Evelyn JADHV",
"dueDate": "2020-08-22"
},
but it comes like that from api
data": {
"bill": {
"additionalInfo": "",
"amount": "",
"billDate": "",
"billNumber": "",
"billPeriod": "",
"customerName": "",
"customerRefId": "01517476646",
"dueDate": ""
},
}
my classes
- public class GetBillFatchedBilldata
- {
- public bill bill { get; set; }
- }
- public class bill
- {
- public List
additionalInfo { get; set; } - public string amount { get; set; }
- public string billDate { get; set; }
- public string billNumber { get; set; }
- public string billPeriod { get; set; }
- public string customerName { get; set; }
- public string customerRefId { get; set; }
- public string dueDate { get; set; }
- }
- public class additional
- {
- public string name {get; set;}
- public string value {get; set;}
- }

Piyush PansuriyaRank #454 · 5.5K reputationPosted Feb 9, 2021, 3:10 AM EST
Pradeep RawatRank #5,709 · 289 reputationPosted Feb 9, 2021, 4:05 AM EST
Sachin SinghRank #66 · 26.2K reputationPosted Feb 9, 2021, 4:13 AM EST
Pradeep RawatRank #5,709 · 289 reputationPosted Feb 9, 2021, 4:23 AM EST
Sachin SinghRank #66 · 26.2K reputationPosted Feb 9, 2021, 4:45 AM EST
Pradeep RawatRank #5,709 · 289 reputationPosted Feb 9, 2021, 5:28 AM EST