skip attributes that are null when converting to json