New ask Hacker News story: Ask HN: Why is JSON so pedantic? - Gadgets180™

It is a technical blog/website and you will get here all the technical stuff and we also post some tech news.

Header Ads

Post Top Ad

Responsive Ads Here

New ask Hacker News story: Ask HN: Why is JSON so pedantic?

Share This
Ask HN: Why is JSON so pedantic?
2 by thyrox | 3 comments on Hacker News.
Why can't we have a trailing comma in JSON? Why doesn't it support inline comments. Why can't we single quote things? Why do we need to double quote keys? JavaScript objects are similar to JSON and allow all this and it works just fine. They never misinterpret anything. So why can't JSON be more forgiving? I remember XML used to be the same back in the day. Why do creators of schema make them so strict? Isn't the whole thing about making life of users (or devs in the case) easier? What purpose does such fussy specifications achieve?

Don't forget to subscribe our youtube channel Click here:- http://www.youtube.com/c/techgk Product of the day

No comments:

Post a Comment

Post Bottom Ad

Responsive Ads Here

Pages