code: func NewSerializer(meta MetaFactory, creater runtime.ObjectCreater, typer runtime.ObjectTyper, pretty bool) *Serializer {
  	return NewSerializerWithOptions(meta, creater, typer, SerializerOptions{false, pretty, false})
  }
docs: // NewSerializer creates a JSON serializer that handles encoding versioned objects into the proper JSON form. If typer
  // is not nil, the object has the group, version, and kind fields set.
  // Deprecated: use NewSerializerWithOptions instead.