You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a object class
payment {
details [
{
FirstName:"goo",
LastName:"foo"
},
{
FirstName:"poo",
LastName:"shoo"
}
]
}
I want details object to always be an array even if I have just 1 object in the list.
If I set explicitArray=false then if the detail has one object it converts array into an object. I am getting a error in the code as its expecting an array of object and not an object.
Is there a way to set explicitArray=false only for non-child node.
The text was updated successfully, but these errors were encountered:
I have a object class
payment {
details [
{
FirstName:"goo",
LastName:"foo"
},
{
FirstName:"poo",
LastName:"shoo"
}
]
}
I want details object to always be an array even if I have just 1 object in the list.
If I set explicitArray=false then if the detail has one object it converts array into an object. I am getting a error in the code as its expecting an array of object and not an object.
Is there a way to set explicitArray=false only for non-child node.
The text was updated successfully, but these errors were encountered: