You are viewing a single thread.
View all comments View context
25 points

That’s my biggest peev about JSON actually. No comments!! WTH!

permalink
report
parent
reply
0 points

There’s comments in the specs and a bunch of parsers that actually inore //

permalink
report
parent
reply
3 points
*
Deleted by creator
permalink
report
parent
reply
1 point

json spec draft 7

permalink
report
parent
reply
15 points
*

On one hand I agree, on the other hand I just know that some people would immediately abuse it and put relevant data into comments.

permalink
report
parent
reply
9 points

do they do that in xml? never seen that

permalink
report
parent
reply
3 points

I have actually seen it in an XML file in the wild. Never quite understood why they did it. Anything they encoded into there, they could have just added a node for.
But it was an XML format that was widely used in a big company, so presumably somewhere someone wrote a shitty XML parser that can’t deal with additional nodes. Or they were just scared of touching the existing structure, I don’t know.

permalink
report
parent
reply
5 points

This is why there are none, but I still think it’s dumb. Parsers can’t see comments anyways.

permalink
report
parent
reply
9 points
*

That’s assuming people actually use a parser and don’t build their own “parser” to read values manually.

And before anyone asks: Yes, I’ve known people who did exactly that and to this day I’m still traumatized by that discovery.

But yes, comments would’ve been nice.

permalink
report
parent
reply

Programmer Humor

!programmerhumor@lemmy.ml

Create post

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

  • Posts must be relevant to programming, programmers, or computer science.
  • No NSFW content.
  • Jokes must be in good taste. No hate speech, bigotry, etc.

Community stats

  • 4.2K

    Monthly active users

  • 949

    Posts

  • 10K

    Comments

Community moderators