Added null value handling to json serialization for Sensor put methods