Serializes only fields instead of both fields and properties which was redundant.