Re:FracturedJson
by frizlab on Friday January 02, 2026 @08:40AM
(#46464624)
Unrelated: why spaces inside the parentheses? It’s not the first time I see this, but this is incorrect!
[ Parent
| on HN ]
JSON doesn't have parentheses, but it does have braces and brackets. The JSON spec specifically allows spaces.
> Insignificant whitespace is allowed before or after any token.
I was talking about the parent comment, which has spaces inside the parenthesis (I do prefer no spaces inside brackets and braces in my JSONs, but that’s another story).
Re:FracturedJson
by Sohcahtoa82 on Friday January 02, 2026 @02:02PM
(#46468135)
Probably someone who writes C/C++ and formats their code that way
if ( x == ( y + z ) * w ) {
Personally, I find it hard to read.
Re:FracturedJson
by damnitbuilds on Saturday January 03, 2026 @05:26AM
(#46474978)
Agreed.
But I find this easier to read:
if ( x == (y+z) * w )
{
Spaces help group things.