type V struct {
b []byte
}
func (v *V) MarshalJSONObject(enc *gojay.Encoder) {
var ej = gojay.EmbeddedJSON(v.b)
enc.AddEmbeddedJSONKey("someKey", &ej)
enc.AddEmbeddedJSONKeyOmitEmpty("someKeyOmitEmpty", &ej)
}
func (v *V) IsNil() bool {
return v == nil
}
Eventually will add a simple enc.Bytes in the future.
You can encode bytes this way:
Eventually will add a simple
enc.Bytes
in the future.