TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Pradeep Rawat
NA
286
8.2k
how to handle api response.
Feb 9 2021 7:49 AM
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<additional> 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
;}
}
Reply
Answers (
6
)
C# SWIFT Message Package
About Chrome Extension.