josdejong / svelte-jsoneditor

A web-based tool to view, edit, format, repair, query, transform, and validate JSON
https://jsoneditoronline.org
Other
820 stars 108 forks source link

Classic view editor #220

Closed wongshung closed 1 year ago

wongshung commented 1 year ago

I found that class view editor is disabled. Any way to use that? I still think that editor is more simple and easy to use.

josdejong commented 1 year ago

Thanks for your feedback Leepi. I removed a link from the "about" section referring to the classic version, but the classic version is still available for anyone who likes it better:

https://jsoneditoronline.org/classic/index.html

Can you explain a few concrete things that you find easier to do in the classic version? Like edit a value or insert a new field?

wongshung commented 1 year ago

https://jsoneditoronline.org/classic/index.html

Most of the time, I just want to view and check the json content. I don't need to edit, or do some complicated editting work for the json. In that case, it is more convenient to just use a simple or easy to read editor.

josdejong commented 1 year ago

Ok clear. Your feedback is very valuable, there may be something simple missing in the new editor that would be easy to fix.

So, why does the new editor feel more complex to view your JSON data? Do you find the user interface more cluttered, or do you find it harder to get your document opened in the editor? Also: do you use the text mode or tree mode for viewing?

XueMeijing commented 1 year ago

Hi, In text mode, I found that the successor editor will expand empty {}`` or[]``` and seems that there have no params to config it. it occupy more lines and looks not intuitively.

image

besides, when expand an object, the classic editor gray vertical line disappleared, would it be better to recover the gray vertical line ? It's harder to find the end point, especially if a long object overflow the editor container

image

josdejong commented 1 year ago

Thanks for reporting @XueMeijing, this is a bug in the format function. I will look into it.

josdejong commented 1 year ago

The formatting issue has been fixed now in svelte-jsoneditor@0.14.5 and https://jsoneditoronline.org v6.12.4.

I'll now close this issue as there are no other actionable requests. More feedback is very welcome though!

EDIT: the actual issue with formatting was in the lossless-json library, and fixed in v2.0.6.