Menu
Code is poetry written by poets who can't spell.
Home
Hot
Random
Search
Browse
AI
AWS
Agile
Algorithms
Android
Apple
Azure
Backend
Bash
C++
Cloud
All Categories
HTTP 418: I'm a teapot
The server identifies as a teapot now and is on a tea break, brb
HTTP 418: I'm a teapot
The server identifies as a teapot now and is on a tea break, brb
Json5 Memes
Posts tagged with Json5
Comments In Json
Javascript
Programming
Frontend
Backend
Webdev
6 hours ago
12.1K views
0 shares
JSON doesn't support comments. Never has, never will. Douglas Crockford decided comments were unnecessary because he saw people putting parsing directives in them, so he just... removed the feature entirely. Now we're all stuck using "_comment": "this is a workaround" like savages or switching to JSON5/JSONC like we're asking permission to use basic functionality that literally every other config format has had since 1970. The genie's reaction is perfect. You want WHAT? Comments? In MY data interchange format? That's somehow more forbidden than necromancy. At least you can hack together bringing back the dead with some creative coding. But comments in JSON? Absolutely haram. There are 4 rules now.
Today's picks
Programmer Poster Linux Commands Cheat Sheet | Handy devops terminal command guide for tech labs offices coding bootcamps(Unframed,08X12inch(20X30cm))
Affiliate
$9.10
The World's Most Exclusive Tech Conference
Networking
485.2K views
1 year ago
DevOps Hate When You Use This One Trick
Devops
653.9K views
1 year ago