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 indent: bool argument to .json_encode() #21105

Open
DeflateAwning opened this issue Feb 5, 2025 · 0 comments
Open

Add indent: bool argument to .json_encode() #21105

DeflateAwning opened this issue Feb 5, 2025 · 0 comments
Labels
enhancement New feature or an improvement of an existing feature

Comments

@DeflateAwning
Copy link
Contributor

Description

It would be awesome to be able to output nicely-formatted json (i.e., indented) with json_encode. Currently, to do this, you have to use map_elements, which is painfully slow even with orjson.

@DeflateAwning DeflateAwning added the enhancement New feature or an improvement of an existing feature label Feb 5, 2025
@DeflateAwning DeflateAwning changed the title Add ident: bool argument to .json_encode() Add indent: bool argument to .json_encode() Feb 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or an improvement of an existing feature
Projects
None yet
Development

No branches or pull requests

1 participant