Skip to content

Flag to use tabs for indentation #286

Description

@PapeCoding

Is your feature request related to a problem? Please describe.
As we are generating rather huge (> 1GB) json files using this library, saving multiple characters on every line while keeping the results easily readable would be a huge bonus.

Describe the solution you'd like
Add a flag to use a tab character (\t) as indentation.

Describe alternatives you've considered
I can easily post-process the generated json file by passing it through jq or other alternatives, but it would be nice if the library would support this out of the box. Using the two-spaces flag already helps, but also alters the readability in case we need to go through the json by hand.

Additional context
Obviously it would be nice if that format would also be readable by the library again. In my tests this has not worked yet.

This feature is absolutely not necessary and not at all time-critical. Just a nice thing to have in the future. 🙂

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions