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

Ability to format json #146

Open
benjwarner opened this issue Nov 8, 2021 · 1 comment
Open

Ability to format json #146

benjwarner opened this issue Nov 8, 2021 · 1 comment
Labels
question The issue describes a question

Comments

@benjwarner
Copy link

Have gone through the documentation. I can't see any flags to product formatted (indented) json.

Is this possible?

@ramonhagenaars
Copy link
Owner

This is possible by providing the corresponding arguments to the underlying json lib:

jsons.dumps(your_instance, jdkwargs={"indent":4})

@ramonhagenaars ramonhagenaars added the question The issue describes a question label Dec 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question The issue describes a question
Projects
None yet
Development

No branches or pull requests

2 participants