Get the latest tech news

JSON parsers that can accept comments


now what you've been told. Douglas Crockford said that JSON can't have comments.

You can put comments in JSON files if you know they're going to be read only by a reasonable parser. If you maintain a parser, you can make it accept comments and nothing bad will happen! Those are fine; not bad necessarily, but just a bit unnecessary, because there are no downsides to making a regular JSON parser accept comments.

Get the Android app

Or read this on Hacker News

Read more on:

Photo of dad

dad

Photo of douglas crockford

douglas crockford

Related news:

News photo

It's 10am and Dad's Doing Jell-O Shots. Must Be Parents' Weekend

News photo

Fla. pol targeted in elaborate 'car crash' AI scam -- which almost fooled his dad into forking over $35K

News photo

Dad hacks database to fake death and avoid child support pay