code: def _ensure_field(self, key):
          
          if self._has_field:
              self._size += 2  # comma, space
          self._has_field = True
  
          self._size += len(key) + 4
docs: Ensure a non-array field