I still think Crockford did the #JavaScript world the biggest disfavour by going "comments don't belong in JSON".
Like, do comments belong in any data interchange format? No, of course not.
And is JSON a data interchange format? Sure.
But is JSON only a data transport format? Just like literally every text based data interchange format : No, of course not. This was already obvious from day one.
And so the only option is to add not-trivially-ignored data into JSON to get that text in.
=> More informations about this toot | View the thread | More toots from TheRealPomax@mastodon.social
=> View javascript tag This content has been proxied by September (3851b).Proxy Information
text/gemini