func (d *Definition) MarshalJSON() ([]byte, error) {
	if d == nil {
		return []byte("null"), nil
	}
	return JSONCodec.Marshal(d.GRPCStatus().Proto())
}
MarshalJSON implements json.Marshaler.
package errors
import (
	"go.thethings.network/lorawan-stack/v3/pkg/jsonpb"
	spb "google.golang.org/genproto/googleapis/rpc/status"
	"google.golang.org/grpc/status"
)
var JSONCodec interface {
	Marshal(v interface{}) ([]byte, error)
	Unmarshal(data []byte, v interface{}) error
} = jsonpb.TTN()