I am trying to consume some rest webservices with json request and response format. I am sending all the values in the request even the optional parameters which do not have values.(The default value for all the optional parameter I set as empty string "" to avoid null). One of my colleague pointed out to check empty parameters for optional values and remove them from the request if no value exist.
I know I would be stupid to ask this very basic question but I would like to know the best practice:
Is it good to send empty parameters or we need to check for empty parameters and send only the one which has value.