"Leading-Comma JSON Formatter"
Find a file
2025-11-29 16:02:27 -05:00
.devenv lcjf 2025-11-29 15:43:15 -05:00
app lcjf 2025-11-29 15:43:15 -05:00
src lcjf 2025-11-29 15:43:15 -05:00
test lcjf 2025-11-29 15:43:15 -05:00
.devenv.flake.nix lcjf 2025-11-29 15:43:15 -05:00
.gitignore Initial commit 2025-11-29 20:13:50 +00:00
devenv.lock lcjf 2025-11-29 15:43:15 -05:00
devenv.nix lcjf 2025-11-29 15:43:15 -05:00
devenv.yaml lcjf 2025-11-29 15:43:15 -05:00
lcjf.cabal lcjf 2025-11-29 15:43:15 -05:00
LICENSE Initial commit 2025-11-29 20:13:50 +00:00
README.md More Readme 2025-11-29 16:02:27 -05:00

lcjf

"Leading-Comma JSON Formatter"

Why

Leading commas are the superior way to format JSON, dictionaries, records, etc. You either know it or are in denial of it.

This simple little program lets you input JSON via stdin or a pipe, then it spits out properly-formatted JSON with leading commas. The right way.

Installing

Until I push this to Hackage and actually set up pre-built binaries, best way to install and use this is to clone it and cabal install it. Make sure ~/.local/bin is on your path.

Contributing

Honestly, I don't know how that's going to work now with my own Forgejo instance here. I don't even know how creating Issues works on here at the moment. Probably best to just yell at me on social media and I'll do something eventually maybe.

AI Disclaimer

This program was put together with the work of a Claude AI agent. My opinions on AI as a whole are largely negative, and I refrain from using it for matters of creative industries. I normally only use it with software development for research assistance, minimizing its actual writing of code.

This program, however, was almost entirely made with the Claude Code AI agent. To me, this is a silly little project that is unlikely to gain usage, even from myself, and I didn't care about the time to write an program for Aeson parsing followed by pretty printing, with optional JSONC comment support.