Skip to content
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

Feature: beautify unformatted json/xml into nice rendered human readable format #94

Open
MiPo0815 opened this issue Apr 25, 2024 · 2 comments

Comments

@MiPo0815
Copy link

It's really useful to have this toolbox as the swiss-army-knife. Another feature would be formatting unformatted json/xml-strings into nice rendered human readable format. Are there any plans to have such a thing in the future?

When you need an example, try looking at https://jsonformatter.org/ the basic layout/functionality is very similar as in this plugin.

@drodil
Copy link
Owner

drodil commented Apr 25, 2024

Thanks for the feedback! There's already the js formatter which can basically format JSON: https://github.com/drodil/backstage-plugin-toolbox/blob/main/plugins%2Ftoolbox%2Fsrc%2Fcomponents%2FFormatters%2FJSBeautify.tsx

For XML, the HTML formatter should work?

@drodil
Copy link
Owner

drodil commented Apr 25, 2024

Maybe it could be enough to change the name of the tools to JS /JSON formatter and HTML/XML formatter.

By the way, one reason for making this plugin is to make sure no information is leaking outside the Backstage instance like it can when you use the online tools. Not really good if your company works with something that can have sensitive information used in development 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants