logoalt Hacker News

gregoriol12/09/20242 repliesview on HN

So instead of comments with parsing directives, people use underscore prefixed keys to keep metadata and comments, that's not a win at all


Replies

arp24212/09/2024

The thing is that JSON was intended to be a data exchange format, not a configuration file format or anything else. IMHO Crockford's reasoning makes a lot more sense with that in mind.

show 4 replies
motorest12/09/2024

> So instead of comments with parsing directives, people use underscore prefixed keys to keep metadata and comments, that's not a win at all

Your comment doesn't make any sense. You're just pointing out that developers designed data interchange formats as subsets of JSON which explicitly support metadata and comments. This means they are specifying their schemas to support these usecases in a way clients can and do support it. That, if anything, proves right the decision to not support comments because it resulted in better-defined and well-behaving clients.

show 1 reply