EXXETA / correomqtt

A modern graphical MQTT client using the HiveMQ client library. MQTT is a messaging protocol widely used in the IoT world. CorreoMQTT provides a UI to send and receive messages. It is able to handle multiple connections at the same time.
http://correomqtt.org
GNU General Public License v3.0
53 stars 21 forks source link

Improve UX of JSON Formatting UI #197

Open nojomyth-dev opened 4 months ago

nojomyth-dev commented 4 months ago

Is your feature request related to a problem? Please describe.

The UX of the current JSON formatting is mediocre at best. It is not possible to enter anything after the json, nor does it format once an error is in the JSON. The auto formatting should be smoother to the user.

Describe the solution you'd like
Make the auto formatting for json more smooth. It should allow to enter errors while marking where the exact error in the JSON is. Furthermore, it should not move too much text around on error and place the cursor correctly / ideally at the next valid spot of the json (when typing ", it should autocomplete the other " and then place the cursor inside the apostrophes). Have it autocomplete brackets too (maybe). And add something to automatically fix unquoted strings. Add a minify feature. Add an escape feature for easier copy and further usage.

Describe alternatives you've considered None, really.

Additional context https://jsonformatter.com/
Try this UX first and then adapt similar process.