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 f.ObjectSeparator flag #7

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

Conversation

rm-hull
Copy link

@rm-hull rm-hull commented Sep 23, 2022

With this flag set to true (which is the default) and f.Indent = 0, then the behaviour is as previous, eg.

{ "a": 5, "b": [ 1, 2, 3 ], "c": { "d": "e" } }

When f.ObjectSeparator = false and f.Indent = 0, it would render the object as:

{"a":5,"b":[1,2,3],"c":{"d":"e"}}

@rm-hull
Copy link
Author

rm-hull commented Feb 11, 2023

@TylerBrock any appetite for merging this?

@TylerBrock
Copy link
Owner

Yes, sorry for the immense delay. Can you explain the use case a little more? Is the idea simply to have a more compact representation?

@rm-hull
Copy link
Author

rm-hull commented Jul 24, 2023

to have a more compact representation?

Exactly, especially when dealing with JSONL files

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.

None yet

2 participants