AykutSarac / jsoncrack.com

✨ Innovative and open-source visualization application that transforms various data formats, such as JSON, YAML, XML, CSV and more, into interactive graphs.
https://jsoncrack.com/
Other
30.5k stars 1.89k forks source link

User can see trimmed strings if it is too long #273

Closed nikolayOrions closed 1 year ago

nikolayOrions commented 1 year ago

Feature

If a JSON field contains long strings the diagram becomes extremely small. For instance image User needs to see trimmed version of a long text Cut off no more than 50 symbols with ... at the end. image

Alternative solutions or implementations

No response

Other context

No response

TallTed commented 1 year ago

A couple of alternatives/enhancements to the original request. The value of any of these, including the original request, depends on the deployment/use-case.

If any of these are implementable along with the original request (right-end truncation), the user would optimally be able to control which is active via a live-UI switch, which might persist from use to use via a persistent preference-file setting. Such preference-file setting might be used instead of live-UI switch, if the latter is difficult to implement.

aatbip commented 1 year ago

If nobody is working on this then can you assign this issue to me?

faizanu94 commented 1 year ago

Hey guys, I tried to work on this feature. Here's the PR (https://github.com/AykutSarac/jsoncrack.com/pull/275)

AykutSarac commented 1 year ago

Fixed with v2.5.0