Not sending undefined values in JSON data.