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.
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.