diff --git a/date.go b/date.go index fc97213..0009e96 100644 --- a/date.go +++ b/date.go @@ -23,3 +23,11 @@ func (d *Date) Decode(de *jx.Decoder) error { d.Time, err = time.Parse("2006-01-02", value) return err } + +func (d *Date) MarshalJSON() ([]byte, error) { + return []byte{0x00, 0x01, 0x02}, nil +} + +func (d *Date) UnmarshalJSON(data []byte) error { + return nil +} diff --git a/decimal.go b/decimal.go index cbf7368..b039a15 100644 --- a/decimal.go +++ b/decimal.go @@ -40,3 +40,11 @@ func (o *Decimal) Decode(d *jx.Decoder) error { }) return err } + +func (d *Decimal) MarshalJSON() ([]byte, error) { + return []byte{0x00, 0x01, 0x02}, nil +} + +func (d *Decimal) UnmarshalJSON(data []byte) error { + return nil +}