Skip to content

PrettyPrint JSON in String attributes #63

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
dkBrazz opened this issue Jul 22, 2024 · 1 comment
Open

PrettyPrint JSON in String attributes #63

dkBrazz opened this issue Jul 22, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@dkBrazz
Copy link

dkBrazz commented Jul 22, 2024

Is your feature request related to a problem?

Sometimes JSON values are stored as String values instead of Map, and to examine such JSONs I need to copy text value and paste it into a JSON new scratch

In Some cases we have "xxxProperties" tables, containing mixed kinds of values in a "propertyValue" field with type "String"
For some properties it might be a boolean, int, string or a json

Describe the solution you'd like

Detection

Autodetection of json values in String attributes might be tricky, so I might be better to make it configurable

  • for a DB connection I would configure a table.attributeName pattern which I expect to be save to pbe parsed as JSON (in case of parsing errors I would expect a warning in IDE)
  • for a specific table view I would liket to have a toggle "autodetect JSON in Strings" which forces aggressive JSON autodetection, an all attributes in all items, including mixed attributes - part of items may have "propertyValue" unparsed, and some items having a valid JSON in "propertyValue" will show it as parsed

Viewing

Additional context

No response

@dkBrazz dkBrazz added the enhancement New feature or request label Jul 22, 2024
@AntonShuvaev
Copy link
Owner

Thanks for the suggestion. I will consider adding this in the future.

@dkBrazz dkBrazz changed the title PrettyPring JSON in String attributes PrettyPrint JSON in String attributes Feb 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants