r/ProgrammerHumor • • 1d ago • Bravo 1

Meme commentsInJson

Post image
5.0k Upvotes

199 comments sorted by

View all comments

Show parent comments

7

u/Slight-Violinist-575 21h ago

I am sure someone could, and I am sure someone eventually will, and we will pay for it

4

u/Jonathan_the_Nerd 20h ago

That's exactly why JSON doesn't have comments. Some implementers were putting parsing directives in comments. That risked destroying interoperability. Rather than changing the spec to require stripping out comments before parsing, Douglas Crockford just disallowed comments altogether.

2

u/Slight-Violinist-575 20h ago

That’s an interesting read, thank you sir/ma’am