I am retrieving the single row from DSS like
<Body xmlns="http://ws.wso2.org/dataservice">
<Datalist>
<username>anil</username>
<password>anil123</password>
</Datalist>
</Body>
and i am consuming this row in ESB Payload factory , while running the my ESB service,
i am getting like this :-
{"ResponseJSON":{"Body":{"Datalist":{"username":"anil","password":"anil123"}},"Status":"200","Total":"1.0"}}
But my output look like as JSON array.
{
"ResponseJSON": {
"Body": {
"Datalist": [
{
"username": "anil",
"password": "anil123"
}
]
},
"Status": "200",
"Total": "1.0"
}
}
How can we achieve this