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

Allow output of not prettified JSON data #1019

Open
FalkWoldmann opened this issue Apr 25, 2024 · 0 comments
Open

Allow output of not prettified JSON data #1019

FalkWoldmann opened this issue Apr 25, 2024 · 0 comments

Comments

@FalkWoldmann
Copy link

Hi,

right know, |tojson will always prettify the output. This can lead to noisy output, e. g. when constructing a stringified object for a data- attribute. I think it would be a nice addition to toggle this functionality, perhaps with a new filter or with a parameter on the existing filter if that it possible?

This idea was already brought up in #192 and #1008.

What do you think?

@FalkWoldmann FalkWoldmann changed the title Add json filter to output not prettify JSON data Allow output of not prettified JSON data Apr 25, 2024
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

Successfully merging a pull request may close this issue.

1 participant