on 10-19-2016 6:35 PM
Hello
We are checking if GW would allow us to override the default behavior in scenarios where we need to return empty arrays.
Request Payload:
"PropertyName":[ ]
if the request payload is in above format(empty array), we have observed that GW returns the response in the below format( if there are no records, square brackets are removed )
Response:
"PropertyName":null
Does GW provide any option to change the response to "PropertyName":[ ] ( with the square brackets, if we want to return an empty array) or does it violate the OData standards?
Thank you
-Rajesh
Hello Rajesh,
As far as i know at DPC level we do not have any control over the way GW encapsulates data as response in XML or in JSON format.
Its would not be a good idea to manipulate the response.
Regards,
Ashwin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
61 | |
9 | |
7 | |
6 | |
6 | |
6 | |
5 | |
5 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.