Ask Your Question
0

How can empty arrays be removed from the JSON payload of the Debezium Outbox Pattern property, transforms.outbox.table.expand.json.payload?

asked 2021-08-17 11:00:00 +0000

david gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2022-06-21 03:00:00 +0000

huitzilopochtli gravatar image

One way to remove empty arrays from the JSON payload of the Debezium Outbox Pattern property, transforms.outbox.table.expand.json.payload, is to use a custom transformer in the Kafka Connect worker configuration.

The transformer logic would need to identify empty arrays in the JSON payload and remove them before forwarding the message to downstream systems. This can be achieved using a combination of JSON parsing and filtering logic.

Alternatively, you could modify the application code that generates the JSON payload to exclude empty arrays in the first place.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2021-08-17 11:00:00 +0000

Seen: 18 times

Last updated: Jun 21 '22