rest api response with value 0 is not returned

rest api response with value 0 is not returned

  

hi there, i am creating a web service, and test it in https://resttesttest.com/ with response like this:

[{"Flag":"First","FinList":[{"Customer":6.0,"Plafond":25000.0,"Outstanding":12500.0,"WAIR":13.0},{"Customer":11.0,"Plafond":40000.0,"Outstanding":28000.0,"WAIR":12.8},{"Customer":12.0,"Plafond":50000.0,"Outstanding":35000.0,"WAIR":12.75}]},{"Flag":"Second","FinList":[{"Customer":1.0,"Plafond":1.0,"Outstanding":1.0},{"Customer":2.0,"Plafond":2.0,"Outstanding":2.0},{"Customer":3.0,"Plafond":3.0,"Outstanding":3.0}]},{"Flag":"Third","FinList":[{"Customer":6.0,"Plafond":25000.0,"Outstanding":22500.0},{"Customer":1.0,"Plafond":10000.0,"Outstanding":7000.0}]}]

I am wondering, if the attribute "WAIR" has value 0 then it is not returned in the response (like in "Flag":"Second" and "Flag":"Third"). Is it the correct behavior for a web service?

Thank you,

regards, indra


Hi

Did you try setting the "Send Default Values" option to "Yes"? (see attached image)