akhq icon indicating copy to clipboard operation
akhq copied to clipboard

Add configuration flag for disabling pretty printing of messages

Open MateuszWicherski opened this issue 9 months ago • 3 comments

Hi!

Is it possible to add a configuration flag for enabling/disabling pretty printing of JSON data on the topics?

MateuszWicherski avatar May 10 '24 09:05 MateuszWicherski

Figured out the same. If people want to replay some messages (with another tool than AKHQ) or just see the raw message they will have issues with pretty printing (on timestamp and unions for instance). It's in my TODO list

AlexisSouquiere avatar May 14 '24 06:05 AlexisSouquiere

@MateuszWicherski what about this ? Is it what you are looking for ? age is [ "null", "int" ] and birthDate is a long/timestamp-millis

Pretty print enabled (same as today) image image

Pretty print disabled image image

Or is it just pretty print for whitespaces / line breaks ?

AlexisSouquiere avatar Jun 06 '24 09:06 AlexisSouquiere

These are whitespaces/linebreaks in my case - they start breaking when messages are large JSONs

MateuszWicherski avatar Jun 06 '24 20:06 MateuszWicherski