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

Pretty printing of 1D arrays in rows #283

Open
DimitryArefievich opened this issue Jun 14, 2024 · 0 comments
Open

Pretty printing of 1D arrays in rows #283

DimitryArefievich opened this issue Jun 14, 2024 · 0 comments

Comments

@DimitryArefievich
Copy link

DimitryArefievich commented Jun 14, 2024

I admit that this may be against the JSON standard rules, but for me it would be very nice if the AlignmentContext with JSON3.pretty() output can allow me to customize printing out the arrays in rows rather than in columns, i.e., instead of:
"a": [
1,
2,
3
]
it will output:
"a": [ 1, 2, 3 ]

I believe it is sufficient to just remove "\n" in pretty.jl in that choice.

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

No branches or pull requests

1 participant