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

hujsonfmt: json formatter supporting comments #309

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

teto
Copy link
Contributor

@teto teto commented Feb 3, 2025

I tried jsonfmt5 but it unquoted keys which broke my json

hujsonfmt replace spaces with tabs and it doesn't seem configurable.
When I tried using it I got

ERRO formatter | hujsonfmt: failed to apply with options '[-w]': exit status 1

hujson: line 2, column 5: invalid literal: desktop
usage: hujsonfmt [flags] [path ...]
  -d	display diffs instead of rewriting files
  -l	list files whose formatting differs from hujsonfmt's
  -m	minify results
  -s	standardize results to plain JSON
  -w	write result to (source) file instead of stdout

I tried jsonfmt5 but it unquoted keys which broke my json
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