func (f SerializeFunc) Serialize(w io.Writer) error {
	return f(w)
}
Serialize is the implementation of Serialize for SerializeFunc
package rpc
import (
	"encoding/json"
	"io"
	stderr "github.com/pkg/errors"
)
type SimpleJsonSerializer struct {
	O interface{}
}
func (s *SimpleJsonSerializer) Serialize(w io.Writer) error {
	return JsonEncoder{}.Encode(w, s.O)
}
type SerializeFunc func(w io.Writer) error