Only serialize non-default values.