kamilfb / mqtt-spy

Please use the new Eclipse Paho GitHub repo instead.
https://github.com/eclipse/paho.mqtt-spy/wiki
345 stars 68 forks source link

Request: Custom formatter for JSON payloads #65

Closed TotallyInformation closed 8 years ago

TotallyInformation commented 8 years ago

Hi,

Many, many thanks for creating this tool. It is really helpful.

One thing I find myself doing though is often copying the data payload and pasting to Notepad++ then formatting as JSON so that I can make sense of data.

It would be great if we could have a formatter that would pretty-print JSON in the data part of the "Subscriptions and received messages" section of the display.

I don't suppose I'm the only person commonly using JSON data with MQTT so I would think that this would be really helpful.

Regards, Julian.

kamilfb commented 8 years ago

Thanks for raising this Julian - I'll look into it.

kamilfb commented 8 years ago

Hi @TotallyInformation,

I've created a new beta build for you to try: http://baczkowicz.pl/mqtt-spy/download/mqtt-spy-0.5.0-beta-b7-jar-with-dependencies.jar

Let me know if that is any good.

TotallyInformation commented 8 years ago

Sorry, missed the message. Trying now. I assume that this is included in the 0.5.0 release.

TotallyInformation commented 8 years ago

Yay! That's great - many thanks for that, it's going to make a big difference. And you've fixed quite a few formatting issues I've always had on Windows, especially when moving between monitors with different settings.

kamilfb commented 8 years ago

Many thanks @TotallyInformation for the feedback - happy to hear you like it. Would you consider making a small contribution to UNICEF at https://www.justgiving.com/mqtt-spy/ ? Any other problems - let me know!

TotallyInformation commented 8 years ago

Contribution done. Thanks for reminding me to do that. I also gave you a mention on the Google Group for Node-Red, a flow-based tool aimed largely at IoT so there are a lot of heavy MQTT users there. NR is developed as an open source tool by IBM. A lot of us use JSON payloads for IoT so the formatter is really useful.

kamilfb commented 8 years ago

Awesome! Thank you! :)