Hacker News new | past | comments | ask | show | jobs | submit login

Some JSON implementations supports comments, others don't. If you know the one you use supports (and will continue to support) comments, go ahead and use it. It just won't be portable.

Douglas Crockford himself suggests you "Go ahead and insert all the comments you like. Then pipe it through JSMin before handing it to your JSON parser." That sounds like a reasonable workaround.

https://plus.google.com/118095276221607585885/posts/RK8qyGVa...




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: