func (s *Serialization) Encode(obj Object) ([]byte, error) {
	return s.encode(obj)
}
Encode is used to encode obj.
package serializer
import (
	"encoding/json"
	"io"
)
type ContentType string
const (
	ContentTypeJSON ContentType = "application/json"
	defaultType                 = "application/json"
)
func (c ContentType) String() string {
	return string(c)
}
type Serialization struct {
}
func NewSerializer() Serializer {
	return &Serialization{}
}
func (s *Serialization) encode(obj Object) ([]byte, error) {
	return json.Marshal(obj)
}
func (s *Serialization) decode(data []byte, obj Object) error {
	return json.Unmarshal(data, obj)
}