News for hackers. Stuff that matters.
Re:JSON5 – JSON for Humans by thayne on Monday December 09, 2024 @01:14AM (#42363463)
So how do you add a comment in the middle of an array?
Re:JSON5 – JSON for Humans by oneeyedpigeon on Monday December 09, 2024 @09:50AM (#42366687)
How do you add a comment in the middle of a keyword in JavaScript?
Re:JSON5 – JSON for Humans by jefftk on Monday December 09, 2024 @10:37AM (#42367174)
I often want to comment individual array values to give more context or describe provenance. I don't think I've ever wanted to add a comment in the middle of a keyword.
Re:JSON5 – JSON for Humans by CharlieDigital on Monday December 09, 2024 @11:31AM (#42367675)
These two are not remotely the same thing. You can have an array declared on multiple lines and add a comment to specific values. Or even inline with the value /* */.