doesn't send empty attributes in JSON