Space before colon `:`?
Opened this issue · 1 comments
Scvairy commented
I want to add a pre-commit hook to sort Contents.json files generated for Xcode (or by xcode), and in its flavor of json there is a space before colon.
To reduce diff, I'd like to follow xcode's rules.
Let me know, if that is possible? Thank you!
ljharb commented
That's very bizarre and doesn't match any JSON examples or tooling I've ever used before.
We could certainly do it with some kind of callback option that gets the key and the value and returns the formatted pair (unindented), but that's a lot of complexity to add for a feature this uncommonly needed.