Skip to content

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.

2 participants