mirror of
https://github.com/jwetzell/showbridge-go.git
synced 2026-04-27 05:15:47 +00:00
remove last byte in json.encode because of new line
This commit is contained in:
@@ -21,7 +21,11 @@ func (je *JsonEncode) Process(ctx context.Context, payload any) (any, error) {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
return payloadBuffer.Bytes(), nil
|
||||
payloadBytes := payloadBuffer.Bytes()
|
||||
|
||||
payloadBytes = payloadBytes[0 : len(payloadBytes)-1]
|
||||
|
||||
return payloadBytes, nil
|
||||
}
|
||||
|
||||
func (je *JsonEncode) Type() string {
|
||||
|
||||
Reference in New Issue
Block a user