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

Add ability to minify JSON #14

Open
rijkvanzanten opened this issue Nov 21, 2019 · 2 comments
Open

Add ability to minify JSON #14

rijkvanzanten opened this issue Nov 21, 2019 · 2 comments

Comments

@rijkvanzanten
Copy link
Contributor

I oftentimes use https://json.pizza to edit JSON values that stored (minified) in a database. Currently, I can copy and paste my JSON into json.pizza, hit CMD+enter, and make my edits. However, I am missing a step in my workflow: making the beautified JSON minified again.

What are your feelings on having the ability to "un-format" the JSON as well @kritzware? I can provide a PR of course.

@kritzware
Copy link
Owner

Hi @rijkvanzanten, apologies for the delay on a response.

I'm into having this extra functionality. In terms of UI, we'll need a new action button, or perhaps a new button which triggers a dropdown, where in the future we can add more actions.

@rijkvanzanten
Copy link
Contributor Author

I think a second "big" button for now will do. When a new action comes in, we can revisit our options.

Also, what are your thoughts on the copy button? I feel like the primary action buttons that modify the value (format / minify) should be in the bottom right, but copy isn't a content-modifier.

(I'm also wondering how many people would use the mouse to click that button to begin with. I would assume most people use CMD+A (select all) + CMD+C (copy)?

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

No branches or pull requests

2 participants