Skip to content

Orjson option improvements #4

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Orjson option improvements #4

wants to merge 2 commits into from

Conversation

zclaas
Copy link

@zclaas zclaas commented Jun 30, 2025

Currently, the orjson OPT_INDENT_2 flag can be given which pretty prints an object over multiple lines, which is not compatible with json lines. Also the OPT_APPEND_NEWLINE flag will add an extra newline. This changes save, append and extend to use the latter flag instead of manually writing a newline, as well as to remove the former flag. The remaining orjson options are also exported so that they can be used directly in this module.

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 this pull request may close these issues.

1 participant